Review main Ready for review Breaking

98016[!!!][TASK] Drop SingletonInterface from LogManager

Benni Mack CR 0 V 0 Easy +36 −13 updated 11/25/26, 13:59

Commit message

LogManager is created by Bootstrap and registered as an early
instance in the container, so the marker is not needed to make it
shared or public.

The marker also caused a second LogManager to exist: Bootstrap
creates the "core" and "di" caches before the container is set, and
the constructor of AbstractBackend fetches the LogManager via
GeneralUtility::makeInstance(). That call created a new LogManager
with its own request id and cached it as singleton, so every later
makeInstance(LogManager::class) received it instead of the container
instance, and its log records carried a different request id.

Bootstrap::createCache() now hands the bootstrap LogManager to the
early cache backends, and the marker is removed.
Show more Show less

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/16/98016/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/16/98016/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote

Relation chain 2

  1. 98017[TASK] Pass bootstrap LogManager to ErrorHandler Based on this change Benni Mack → main Easy +30 −7 CR 0 V -1 Merge conflict
  2. 98016 [!!!][TASK] Drop SingletonInterface from LogManager This change

Merge conflicts 4

Issues 2

Files 9

Review log 23

  1. Benni Mack uploaded patch set 1 11/25/26, 13:17

  2. core-ci voted on patch set 1 V -1 11/25/26, 13:22 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115448

  3. Benni Mack rebased onto patch set 2 V -1 11/25/26, 13:59