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

Created on 14 September 2012, almost 12 years ago
Updated 24 May 2024, about 1 month 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 1 month ago

  • Maintained by
  • πŸ‡¦πŸ‡·Argentina @dagmar
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.69.0 2024