Problem/Motivation
It's completely unacceptable to break a page if we fail to log a message. In particular, this cause painful to debug errors during the installation process, as recently reported in #429188: Watchdog table not installed when watchdog module enabled..
Proposed resolution
Catch and ignore all exceptions thrown in dblog_watchdog()
.
Remaining tasks
- Write a patch.
- Implement a generic test that tries to watchdog() in a Unit Test Case (that doesn't have access to the database).
User interface changes
None.
API changes
None.