Welcome Guest, Not a member yet? Register   Sign In
logging mysql errors

I need to log MySQL errors for a production system. It seems that setting $db['default']['db_debug'] = FALSE not only prevents MySQL errors from being displayed in the browser, but it also prevents them from being logged.

Is there any way to configure logging without display?

Alternatively, is the connection handle available so that I can use mysqli_error()?

Note that I'm especially interested in logging errors from within transactions that operate across multiple models.


You can get the connection id via

You can also access the the error and error message via

Much appreciated. And I now see that


is also an option

Theme © iAndrew 2016 - Forum software by © MyBB