directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r697057 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ReferralAwareRequestHandler.java
Date Fri, 19 Sep 2008 11:29:10 GMT
Author: elecharny
Date: Fri Sep 19 04:29:09 2008
New Revision: 697057

URL: http://svn.apache.org/viewvc?rev=697057&view=rev
Log:
Transform an error message to a debug message to avoid many logs when entries are not present
in the server

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ReferralAwareRequestHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ReferralAwareRequestHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ReferralAwareRequestHandler.java?rev=697057&r1=697056&r2=697057&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ReferralAwareRequestHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ReferralAwareRequestHandler.java
Fri Sep 19 04:29:09 2008
@@ -793,6 +793,7 @@
         {
             code = ResultCodeEnum.getBestEstimate( e, req.getType() );
         }
+        
         result.setResultCode( code );
 
         /*
@@ -801,11 +802,13 @@
          * embed the result code name into the message.
          */
         String msg = code.toString() + ": failed for " + req + ": " + e.getMessage();
-        LOG.error( msg, e );
+        LOG.debug( msg, e );
+        
         if ( IS_DEBUG )
         {
             msg += ":\n" + ExceptionUtils.getStackTrace( e );
         }
+        
         result.setErrorMessage( msg );
 
         if ( e instanceof NamingException )



Mime
View raw message