[TYPO3-dev] mysql errors log
Vladimir Podkovanov
podkovanov at gmail.com
Tue Jan 17 09:37:21 CET 2012
On 17.01.2012 11:25, Franz Holzinger wrote:
> On 17/01/12 00:51, Vladimir Podkovanov wrote:
>
>> Does anybody know if there is a reason why SQL errors only can be
>> displayed in the UA and can't be logged to devlog, syslog or whatever.
>>
>> It is especially important because MYSQL also doesn't offer logging SQL
>> query errors.
>> Without such log I can't check if all are working right in production.
>
> I always use the extension debug_mysql_db to show the SQL errors. This
> also shows the backtrace to the PHP files from where the SQL query has
> been called.
>
> - Franz
Yep, I tried that extension, but was not able to log into file with PHP
function error_log() - I tried example from doc but got an warning
(wrong type of second argument). And looks like the ext logs all queries
not only errors.
Anyway I think logging SQL errors should be implemented in the core, not
with xclassing.
--
-rgds-
Vladimir
More information about the TYPO3-dev
mailing list