[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-dev
Subject:    svn commit: r893119 -
From:       manolo () apache ! org
Date:       2009-12-22 9:16:10
Message-ID: 20091222091610.D8AF923888E7 () eris ! apache ! org
[Download RAW message or body]

Author: manolo
Date: Tue Dec 22 09:16:09 2009
New Revision: 893119

URL: http://svn.apache.org/viewvc?rev=893119&view=rev
Log:
Added a little bit more information to debug messages, when decoding fails.

Modified:
    james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java


Modified: james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
                
URL: http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hup \
a/server/handler/AbstractFetchMessagesHandler.java?rev=893119&r1=893118&r2=893119&view=diff
 ==============================================================================
--- james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java \
                (original)
+++ james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java \
Tue Dec 22 09:16:09 2009 @@ -125,7 +125,7 @@
                 try {
                     from = MimeUtility.decodeText(from);
                 } catch (UnsupportedEncodingException e) {
-                    logger.debug("Unable to decode from " + from, e);
+                    logger.debug("Unable to decode from " + from + " " + \
e.getMessage());  }
             }
             msg.setFrom(from);
@@ -136,7 +136,7 @@
                 try {
                     replyto = MimeUtility.decodeText(replyto);
                 } catch (UnsupportedEncodingException e) {
-                    logger.debug("Unable to decode replyto " + replyto, e);
+                    logger.debug("Unable to decode replyto " + replyto + " " + \
e.getMessage());  }
             }
             msg.setReplyto(replyto);
@@ -157,7 +157,7 @@
                 try {
                     subject = MimeUtility.decodeText(subject);
                 } catch (UnsupportedEncodingException e) {
-                    logger.debug("Unable to decode subject " + subject, e);
+                    logger.debug("Unable to decode subject " + subject + " " + \
e.getMessage());  }
             }
             msg.setSubject(subject);



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic