You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 least 3
Not sure which one would be the best. #24300 (comment) does not help 😁
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
6.2-beta
Description
In #47483 I made
Symfony\Component\HttpKernel\Log\Logger
implementSymfony\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 thelogger
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 theLoggerPass
(priority -32).Given #31509 I guess there are two ways to solve this:
LoggerPass
priority to at least3
Not sure which one would be the best. #24300 (comment) does not help 😁
Additional Context
No response
The text was updated successfully, but these errors were encountered: