XoopsX / legacy

XOOPS Cube Legacy base repository
15 stars 11 forks source link

Exporting mysql errors to httpd error log file #83

Closed kujiy closed 6 years ago

kujiy commented 6 years ago

I was annoyed that xoops showed me the mysql query errors only on browsers when the debug mode was on. But we need to know the error without showing customers.

You can output your mysql errors into your httpd error log when you insert this line below into your config.php.

define("XOOPS_MYSQL_ERROR_LOG", 1); // Export mysql query errors into your httpd error log

I'd appreciate it if you could accept this PR.

Thank you,

nao-pon commented 6 years ago

@kujiy Thanks! 👍

kujiy commented 6 years ago

Thanks!