Issue Task Under Review

#111586Pass bootstrap LogManager to ErrorHandler

Benni Mack 11/25/26, 13:05 updated 11/25/26, 13:36

Description

ErrorHandler fetches the LogManager via GeneralUtility::makeInstance() each time it logs a deprecation. Deprecations raised during early bootstrap, before the container exists, therefore create a new LogManager on every call. Such a LogManager has its own request id and evaluates the writer configuration again.

Bootstrap already holds the LogManager when it sets up error handling. It should pass it to the error handler, which uses it for the deprecation channel and falls back to GeneralUtility::makeInstance() only if none was given.

Follow-up of #111585.

Reviews 1

History 02

  1. Gerrit Code Review pushed patch set 1 for main to change 98017 status New Under Review 11/25/26, 13:17

  2. Gerrit Code Review pushed patch set 2 for main to change 98017 11/25/26, 13:36