[TYPO3-dev] mysql errors log
Franz Holzinger
franz at ttproducts.de
Tue Jan 17 10:20:35 CET 2012
On 17/01/12 10:06, Vladimir Podkovanov wrote:
> On 17.01.2012 12:54, Franz Holzinger wrote:
>>
>> You must check
>> Textformat
>> [TEXTFORMAT]
>> defines that the output is only in text format and not an array as for
>> debug. Arrays are converted into normal text before the output function
>> is called. Use this if you have set error_log as OUTPUT.
>
> Yep I checked, the problem in second argument - there is string 'SQL
> debug':
> call_user_func($debugFunc,$debugOut,'SQL debug');
>
> and in case with error_log() second argument should be integer
Please make the following bug fix:
...
$debugArray['debug_backtrace'] = t3lib_div::debug_trail();
$debugArray['miliseconds'] = round($microseconds * 1000,3);
if ($this->dbgOutput == 'error_log') {
$debugOut = print_r($debugArray, TRUE);
error_log($debugOut);
} else {
if ($this->dbgTextformat) {
$debugOut = print_r($debugArray, TRUE);
} else {
$debugOut = $debugArray;
}
$this->callDebugger($this->dbgOutput, $debugOut);
}
...
- Franz
More information about the TYPO3-dev
mailing list