Problem/Motivation

Error on Monolog extra processor:

wodby@php.container:/var/www/html $ drush updb
[19-Jan-2024 07:19:47 UTC] PHP Fatal error:  Declaration of Drupal\monolog_extra\Logger\Processor\TruncateMessagesProcessor::__invoke(array $record) must be compatible with Monolog\Processor\ProcessorInterface::__invoke(Monolog\LogRecord $record) in /var/www/html/docroot/modules/contrib/monolog_extra/src/Logger/Processor/TruncateMessagesProcessor.php on line 35

Fatal error: Declaration of Drupal\monolog_extra\Logger\Processor\TruncateMessagesProcessor::__invoke(array $record) must be compatible with Monolog\Processor\ProcessorInterface::__invoke(Monolog\LogRecord $record) in /var/www/html/docroot/modules/contrib/monolog_extra/src/Logger/Processor/TruncateMessagesProcessor.php on line 35
 [warning] Drush command terminated abnormally.

Proposed resolution

Monolog invoke method should use LogRecord instead for array https://github.com/Seldaek/monolog/blob/main/UPGRADE.md

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

eduardo morales alberti’s picture

Status: Active » Needs work
omarlopesino’s picture

Status: Needs work » Needs review
eduardo morales alberti’s picture

Covered with tests, ready to review

omarlopesino’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.