log_message on DB Error |
[eluser]Unknown[/eluser]
Location: system/database/DB_driver.php Method: query Code: if ($this->db_debug) It looks like Code: log_message('error', 'Query error: '.$error_msg); Code: if ($this->db_debug) { since we still want to log an error even if debugging is off.
[eluser]Montuelle[/eluser]
Hi, I totally aggreed DB errors reporting are mandatory in a production env, despite full working queries an error can always occur. And generally you'd prefer having the cascading errors history to recover. We're discuting this point here too http://ellislab.com/forums/viewthread/91858/ I want to implement DB errors through the CI Exceptions (wich we can extend) handler to get emailed when mysql errors occured. |
Welcome Guest, Not a member yet? Register Sign In |