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;
         }
     }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to