Things that 'should not happen' should end in debug_report_bug(), not logDebugMessage...
authorRoland Häder <roland@mxchange.org>
Thu, 26 Nov 2009 00:49:50 +0000 (00:49 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 26 Nov 2009 00:49:50 +0000 (00:49 +0000)
inc/libs/yoomedia_functions.php

index a0e9c5a..2b7a734 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