Skip to content

Guzzle logging conflicts with MonologBundle's excluded_404s setting #73

@thewilkybarkid

Description

@thewilkybarkid

By default Monolog is attached to Guzzle clients through its Log plugin. I've found that Symfony 404s are still logged even thought they should be excluded, and I think that's the problem. (I've hit this when using the param converter, but it would happen elsewhere too.)

My understanding is that as the Guzzle exception happens first (and the Log plugin sets it to the ERROR level) it activates the ErrorLevelActivationStrategy.

It would be useful to have the Guzzle exception ignored if it's followed by a Symfony 404.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions