CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

SQL log errors

Open bitbucket-import opened this issue 15 years ago • 2 comments

Why don't log SQL errors with all info that we have for error like filename and SQL to easy debug if someting is wrong on production site, also why when DB_Debug is FALSE we don't log error messages?

Its good to turn off mysql errors for live site and when we turn on loging and have mysql error to log it ...

i don't want to edit DB_driver.php to make this.

bitbucket-import avatar Aug 19 '11 14:08 bitbucket-import

I figured I'm gonna give this a shot, but I noticed there are a few entries in DB_driver.php that will display errors when they occur, but never log (Compare db_set_charset and version). Wouldn't it make sense to log these as well?

niklasga avatar Aug 30 '11 06:08 niklasga

On further inspection, most of these are errors that would make less sense logging than showing during development.

niklasga avatar Aug 30 '11 11:08 niklasga