Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle][HttpKernel] Logger debug mode disabled #48040

Copy link
Copy link
Closed
@MatTheCat

Description

@MatTheCat
Issue body actions

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 least 3

Not sure which one would be the best. #24300 (comment) does not help 😁

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.