-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Monolog] Mailer sends second mail if monolog is configured to email errors #17217
Comments
To me it is more how to hide it But i do not know how to properly fix the root issue, appart removing the log :/ |
Yes, that was my initial thought, too. But if the mail was sent, there is at least no fatal issue with the mail sending ;-) |
Thank you for this issue. |
I don't know if this is a doc issue or a code issue in Monolog bundle. See symfony/monolog-bundle#405 What should we do here? |
Let's close for now in favor of symfony/monolog-bundle#405 and we'll reopen if needed when a decision is done there. Thanks. |
That's fine for me. Thanks 👍 |
As pointed out here there is an issue with the configuration example on https://symfony.com/doc/5.4/logging/monolog_email.html (same issue with newer versions of the doc). Following the first config block, one will always get two error mails if an error occurs.
@raziel057 already explained the reason for the second mail and how to fix it.
I suggest to add the channel constraint to the main handler to the documentation example. So that we have a working example.
What do you think?
The text was updated successfully, but these errors were encountered: