Things that 'should not happen' should end in debug_report_bug(), not logDebugMessage...
[mailer.git] / inc / libs / yoomedia_functions.php
index a0e9c5a70fffe1b4d5f16bfd82e840b0d05b60d2..2b7a734b90f35de51f18c58d17457e0147bd6ea0 100644 (file)
@@ -432,7 +432,7 @@ function YOOMEDIA_GET_ERRORCODE_FROM_RESULT ($response) {
                $code = str_replace("\n", '', $code);
        } else {
                // Should not happen!
-               logDebugMessage(__FUNCTION__, __LINE__, 'Cannot parse response. Raw response=' . base64_encode(serialize($response)));
+               debug_report_bug('Cannot parse response. Raw response:<pre>' . print_r($response, true) . '</pre>');
        }
 
        // Return error code