mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #154] Monolog + E-Mail/Swift + Buffer = no E-Mail #50
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @raziel057 on GitHub (Jan 30, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/154
Hello,
After my Symfony project is allready finished I wanted to include some logging. With Monolog I quickly able to log into files, but I want some E-Mails if an error occurs.
I copy the config from the documentation, but I don't recieve any E-Mail.
If I change it to:
So disable the buffer. I get E-Mails, but to many (thats the reason for the buffer ...).
How can I activate the buffer and still get E-Mails? Is there any bug in the BufferHandler?
Here is my composer.json config:
@raziel057 commented on GitHub (Jan 30, 2013):
I analysed and there is no problem in the BufferHandler and in the SwiftMailerHandler too. The send method of Swift_Mailer is called with a message and the Swift_Transport_Spool is used as transport. As result, the email is flag as sent, so all seems to be good. I need to check the trace on the smtp server to view the difference when using a buffer...
@pborreli commented on GitHub (Jan 30, 2013):
I know it won't help you with the actual problem but why don't you want to keep write log to file + sens emails, this is the configuration I use and it works :
@raziel057 commented on GitHub (Jan 30, 2013):
Yes I tried it too, it's the final configuration I want to use but for the moment I test with the minimal config (with buffer) to find the problem.
@raziel057 commented on GitHub (Jan 30, 2013):
I found the problem. It comes from the fact I configured SwiftMailer with a spool type memory. If I remove it the email is sent correctly.
It can be a problem of order in which the process are executed?
@Seldaek commented on GitHub (Jan 30, 2013):
This is a duplicate of https://github.com/symfony/symfony-standard/issues/425 - the memory spool is currently not flushed at the very end of the request.
@raziel057 commented on GitHub (Jan 30, 2013):
Ok thanks for the link to the original ticket!