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..
Catch and ignore all exceptions thrown in
- 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