Closed
Description
Symfony version(s) affected
6.2-beta
Description
In #47483 I made Symfony\Component\HttpKernel\Log\Logger
implement Symfony\Component\HttpKernel\Log\DebugLoggerInterface
. But after testing against v6.2.0-BETA2 it appears logs are not collected. (It worked on my testing app because I had set the logger
service myself.)
How to reproduce
Do not install Monolog and send some logs while the profiler is enabled. These logs won’t appear in the profiler.
Possible Solution
The issue stems from AddDebugLogProcessorPass
(priority 2) being processed before the LoggerPass
(priority -32).
Given #31509 I guess there are two ways to solve this:
- create a distinct compiler pass for enabling HttpKernel’s logger debug mode
- increase
LoggerPass
priority to at least3
Not sure which one would be the best. #24300 (comment) does not help 😁
Additional Context
No response