Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29769

Symfony Messenger: Send logged messenger errors per email (via swift_mailer)?

$
0
0

I've configured monolog to send errors via email as described in the symfony docs here: https://symfony.com/doc/4.3/logging/monolog_email.html

Works well with all errors happing during a request, as well as console command errors. But it does not send emails for errors which occurred during the handling of a messenger message.

Errors are shown when running the consumer bin/console messenger:consume async -vv and they also show up in prod.log like this: [2020-01-10 12:52:38] messenger.CRITICAL: Error thrown while handling message...

Thanks for any hints on how to set up monolog to get messenger errors emailed too.


Viewing all articles
Browse latest Browse all 29769

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>