Compatibility with 3rd-party loggers

Created on 12 February 2024, 11 months ago
Updated 26 February 2024, 10 months ago

Problem/Motivation

We've installed the Monolog module to help with centralised logging. However, we've started to see exceptions from the Funnelback module:

NOTICE: PHP message: Uncaught PHP Exception TypeError: "Drupal\funnelback\FunnelbackClient::__construct(): Argument #3 ($logger) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\monolog\Logger\MonologLoggerChannelFactory given, called in /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259" at /data/app/modules/contrib/funnelback/src/FunnelbackClient.php line 43

Should be fixable by replacing with LoggerChannelFactoryInterface.

Steps to reproduce

  1. Start with a website with Funnelback installed
  2. Install and configure Monolog
  3. Attempt to use Funnelback search

Proposed resolution

Replace refs to LoggerChannelFactory with LoggerChannelFactoryInterface.

Remaining tasks

Producing a patch that accomplishes this.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia geoffreyr

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024