Suppress errors in json_encode when logging error