directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r543148 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/ChainGuard.java
Date Thu, 31 May 2007 15:05:41 GMT
Author: elecharny
Date: Thu May 31 08:05:39 2007
New Revision: 543148

URL: http://svn.apache.org/viewvc?view=rev&rev=543148
Log:
Used isDebugEnabled() to avoid costly String constructions when not in debug mode

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/ChainGuard.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/ChainGuard.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/ChainGuard.java?view=diff&rev=543148&r1=543147&r2=543148
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/ChainGuard.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/ChainGuard.java
Thu May 31 08:05:39 2007
@@ -45,9 +45,12 @@
         BindRequest request = ( BindRequest ) message;
         LdapResult result = request.getResultResponse().getLdapResult();
 
-        log.debug( "Is simple:       " + request.isSimple() );
-        log.debug( "SASL mechanism:  " + request.getSaslMechanism() );
-        log.debug( "Credentials:     " + request.getCredentials() );
+        if ( log.isDebugEnabled() )
+        {
+            log.debug( "Is simple:       " + request.isSimple() );
+            log.debug( "SASL mechanism:  " + request.getSaslMechanism() );
+            log.debug( "Credentials:     " + request.getCredentials() );
+        }
 
         // Guard clause:  LDAP version 3
         if ( !request.getVersion3() )



Mime
View raw message