directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r561704 - /directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
Date Wed, 01 Aug 2007 08:16:54 GMT
Author: erodriguez
Date: Wed Aug  1 01:16:54 2007
New Revision: 561704

URL: http://svn.apache.org/viewvc?view=rev&rev=561704
Log:
Added error code to Kerberos exception logging.

Modified:
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java?view=diff&rev=561704&r1=561703&r2=561704
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
Wed Aug  1 01:16:54 2007
@@ -187,13 +187,15 @@
         }
         catch ( KerberosException ke )
         {
+            String messageText = ke.getMessage() + " (" + ke.getErrorCode() + ")";
+
             if ( log.isDebugEnabled() )
             {
-                log.warn( ke.getMessage(), ke );
+                log.warn( messageText, ke );
             }
             else
             {
-                log.warn( ke.getMessage() );
+                log.warn( messageText );
             }
 
             ErrorMessage error = getErrorMessage( config.getServicePrincipal(), ke );



Mime
View raw message