logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-310) SMTPAppender does not send mails with error or fatal level without prior info event
Date Tue, 27 Aug 2013 14:39:52 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751316#comment-13751316
] 

Remko Popma commented on LOG4J2-310:
------------------------------------

The three lines you propose to remove were added to fix another problem. 

(committed in revision 1481278 2013/05/11 9:33)
"check if LogEvents array removed from buffer is empty (may happen in concurrent scenarios)
to avoid sending an empty email" 

Just removing those lines would revert back to the old problem.
Unfortunately I cannot find the JIRA ticket for that issue and I cannot remember what that
problem was exactly.

Sorry this is not a complete answer...
                
> SMTPAppender does not send mails with error or fatal level without prior info event
> -----------------------------------------------------------------------------------
>
>                 Key: LOG4J2-310
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-310
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders, Filters
>    Affects Versions: 2.0-beta7
>         Environment: - Ubuntu Linux 12.04
> - java version "1.6.0_27"
> - OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1)
> - OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
>            Reporter: Jost Waldmann
>         Attachments: log4j2-310.patch
>
>
> When using an SMTPAppender a mail is only delivered on a fatal event if there occured
an info event before.
> Prior fatal events are ignored by SMTPAppender - other Appenders log them.
> A more detailed explanation/discussion including an example program can be found at:
> http://stackoverflow.com/questions/17657983/log4j2-smtpappender-does-not-send-mails-with-error-or-fatal-level

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message