Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE08410276 for ; Tue, 27 Aug 2013 14:39:56 +0000 (UTC) Received: (qmail 77208 invoked by uid 500); 27 Aug 2013 14:39:56 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 75709 invoked by uid 500); 27 Aug 2013 14:39:53 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 75632 invoked by uid 99); 27 Aug 2013 14:39:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 14:39:52 +0000 Date: Tue, 27 Aug 2013 14:39:52 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-310) SMTPAppender does not send mails with error or fatal level without prior info event MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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