directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r326215 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/DnParser.java
Date Tue, 18 Oct 2005 19:38:48 GMT
Author: elecharny
Date: Tue Oct 18 12:38:42 2005
New Revision: 326215

URL: http://svn.apache.org/viewcvs?rev=326215&view=rev
Log:
Added a log when a DN is being parsed

Modified:
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/DnParser.java

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/DnParser.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/DnParser.java?rev=326215&r1=326214&r2=326215&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/DnParser.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/DnParser.java
Tue Oct 18 12:38:42 2005
@@ -25,11 +25,14 @@
 import javax.naming.NameParser ;
 import javax.naming.NamingException ;
 
+import org.apache.asn1new.ldap.codec.ModifyRequestTest;
 import org.apache.ldap.common.util.ExceptionUtils ;
 import org.apache.ldap.common.util.NestableRuntimeException ;
 import org.apache.ldap.common.exception.LdapNamingException;
 import org.apache.ldap.common.exception.LdapInvalidNameException;
 import org.apache.ldap.common.message.ResultCodeEnum;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import antlr.TokenStreamSelector ;
 import antlr.RecognitionException ;
@@ -44,6 +47,8 @@
  */
 public class DnParser implements NameParser
 {
+    private static final Logger log = LoggerFactory.getLogger( DnParser.class );
+
     private TokenStreamSelector m_selector ;
 
     private final boolean m_isNormalizing ;
@@ -159,6 +164,11 @@
      */
     public synchronized Name parse( String name, LdapName emptyName ) throws NamingException
     {
+        if ( log.isDebugEnabled() )
+        {
+            log.debug( "Parsing DN '" + name + "'" );
+        }
+        
         // Handle the empty name basis case.
         if ( name == null || name.trim().equals( "" ) )
         {



Mime
View raw message