[eluser]Unknown[/eluser]
Hello everyone,
I was wondering if this is the right place to post a request.
I'm using codeigniter to connect to multiple databases for my project. The other day one of the database servers went down. Alas, native CI db error message does not specify which host/database it failed to connect to.
I've tried to extend system's CI_DB_driver to replace CI_DB_driver->display_error() function to include a bit more information, but it looks like I can't extend that system class.
Wouldn't it be swell if error_db.php included hostname and db name (possibly optional for people who don't want it for security reasons)? Or at least log that info? That way when one of your databases goes down - you know which one right away and don't have to guess.
Please consider my request as I really hate touching CI's system's classes
Also, if someone figured out the way to do it without changing system classes (maybe extending them?) - please post your solution.
Oh, and keep up the good work! Codeigniter rules!
Regards,
Valentyn