watchdog_exception() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0

Created on 18 March 2020, over 4 years ago
Updated 29 August 2024, 3 months ago

Problem/Motivation

With Drupal 8, core has been transitioning to a more object oriented design approach and has slowing been killing off legacy include files and procedures (see ๐ŸŒฑ [META] Provide modern replacements for and deprecate the legacy include files Active ). There's an issue open in core to deprecate watchdog_exception in favor of the Symfony based logging API in core (see ๐Ÿ“Œ Deprecate watchdog_exception Fixed ).

Proposed resolution

Replace use of watchdog_exception in favor of a dependency injected Drupal LoggerChannel Instance.

An additional benefit that would come from this is this would allow users to decorate or override the injected LoggerChannel dependency if they wanted to use their own LoggerChannel or modify the one being passed in.

๐Ÿ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States cliddell

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

Merge Requests

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