directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r289156 - /directory/protocol-providers/changepw/trunk/src/java/org/apache/changepw/service/ChangePasswordExceptionHandler.java
Date Thu, 15 Sep 2005 05:42:17 GMT
Author: erodriguez
Date: Wed Sep 14 22:42:15 2005
New Revision: 289156

URL: http://svn.apache.org/viewcvs?rev=289156&view=rev
Log:
Logging update to Change Password protocol:
o  Added debug log of message and stack trace during chain exception.
o  Added info log of just exception message during chain exception.

Modified:
    directory/protocol-providers/changepw/trunk/src/java/org/apache/changepw/service/ChangePasswordExceptionHandler.java

Modified: directory/protocol-providers/changepw/trunk/src/java/org/apache/changepw/service/ChangePasswordExceptionHandler.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/changepw/trunk/src/java/org/apache/changepw/service/ChangePasswordExceptionHandler.java?rev=289156&r1=289155&r2=289156&view=diff
==============================================================================
--- directory/protocol-providers/changepw/trunk/src/java/org/apache/changepw/service/ChangePasswordExceptionHandler.java
(original)
+++ directory/protocol-providers/changepw/trunk/src/java/org/apache/changepw/service/ChangePasswordExceptionHandler.java
Wed Sep 14 22:42:15 2005
@@ -40,7 +40,14 @@
             return CONTINUE_CHAIN;
         }
 
-        log.debug( exception.getMessage() );
+        if ( log.isDebugEnabled() )
+        {
+            log.debug( exception.getMessage(), exception );
+        }
+        else
+        {
+            log.info( exception.getMessage() );
+        }
 
         ChangePasswordContext changepwContext = (ChangePasswordContext) context;
         ChangePasswordConfiguration config = changepwContext.getConfig();



Mime
View raw message