svn commit: rev 35634 - avalon/trunk/runtime/logkit/src/java/org/apache/log/output/net

[email protected] 3 Aug 2004 14:43:02 -0000
Newsgroups gmane.comp.jakarta.avalon.cvs
Message-ID <[email protected]>
Author: leif
Date: Tue Aug  3 07:43:01 2004
New Revision: 35634

Modified:
   avalon/trunk/runtime/logkit/src/java/org/apache/log/output/net/SMTPOutputLogTarget.java
Log:
If there are any problems sending a message, clear it anyway to avoid an endless stream of retry errors.  Most mail problems will continue to fail.

Modified: avalon/trunk/runtime/logkit/src/java/org/apache/log/output/net/SMTPOutputLogTarget.java
==============================================================================
--- avalon/trunk/runtime/logkit/src/java/org/apache/log/output/net/SMTPOutputLogTarget.java	(original)
+++ avalon/trunk/runtime/logkit/src/java/org/apache/log/output/net/SMTPOutputLogTarget.java	Tue Aug  3 07:43:01 2004
@@ -335,6 +335,10 @@
         catch( MessagingException e )
         {
             getErrorHandler().error( "Error sending message", e, null );
+            
+            // Always clear the message in the event there is an error as the
+            //  problem will most likely repeat.
+            m_message = null;
         }
     }
 }