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

Created on 14 September 2012, about 12 years ago
Updated 24 May 2024, 6 months ago

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.

🐛 Bug report
Status

Fixed

Version

7.0 ⚰️

Component
Database Logging 

Last updated about 2 months ago

Created by

🇫🇷France Damien Tournoud

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024