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 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