Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296875

DB Log is missing watchdog table after enabling - Need to catch and ignore exceptions thrown in dblog_watchdog()

$
0
0

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.


Viewing all articles
Browse latest Browse all 296875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>