-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excluded_http_codes might not work properly #271
Comments
@Sengorius i can also confirm this, i think |
When we documented this feature, I asked the same. See: symfony/symfony-docs#8235 (comment) Apparently this is for some technical reason ... but personally it doesn't make any sense to me. This should work for all handlers. |
Other handlers have no way to filter records.. so you need to wrap them in a fingers crossed handler, which can contain a group handler with all other handlers in it if you want to filter 403/404s from all handlers for example. Fixing this would require generating fingers crossed handler instances on the fly around every handler configured with excluded_http_codes, which sounds nasty to me. Marking as a bug though because the bundle should error in case this config value is used on a handler that doesn't support it. |
is that change backward compatible ? @Seldaek |
Reaching that bug for the same use-case I'm wondering: Why
|
I'm currently using monolog to get informed about errors from a multi-user-site. For my current setup I used https://symfony.com/blog/new-in-symfony-4-1-ignore-specific-http-codes-from-logs as resource.
As you can see below, I tried to exclude 403 and 404 errors (especially) from mailing handler. As for all 404 it might work, but I'm still receiving mails on any 403 error.
Can you please fix this or is it my error?
The text was updated successfully, but these errors were encountered: