directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r280956 - in /directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc: authentication/AuthenticationExceptionHandler.java ticketgrant/TicketGrantingExceptionHandler.java
Date Wed, 14 Sep 2005 22:11:06 GMT
Author: erodriguez
Date: Wed Sep 14 15:11:03 2005
New Revision: 280956

URL: http://svn.apache.org/viewcvs?rev=280956&view=rev
Log:
Added stacktrace output to debug logging in chain exception handlers and added a message-only
info log.

Modified:
    directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationExceptionHandler.java
    directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/ticketgrant/TicketGrantingExceptionHandler.java

Modified: directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationExceptionHandler.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationExceptionHandler.java?rev=280956&r1=280955&r2=280956&view=diff
==============================================================================
--- directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationExceptionHandler.java
(original)
+++ directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationExceptionHandler.java
Wed Sep 14 15:11:03 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() );
+        }
 
         AuthenticationContext authContext = (AuthenticationContext) context;
         KdcConfiguration config = authContext.getConfig();

Modified: directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/ticketgrant/TicketGrantingExceptionHandler.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/ticketgrant/TicketGrantingExceptionHandler.java?rev=280956&r1=280955&r2=280956&view=diff
==============================================================================
--- directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/ticketgrant/TicketGrantingExceptionHandler.java
(original)
+++ directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/ticketgrant/TicketGrantingExceptionHandler.java
Wed Sep 14 15:11:03 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() );
+        }
 
         TicketGrantingContext tgsContext = (TicketGrantingContext) context;
         KdcConfiguration config = tgsContext.getConfig();



Mime
View raw message