directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r267467 - /directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixTransformer.java
Date Sat, 03 Sep 2005 14:46:00 GMT
Author: elecharny
Date: Sat Sep  3 07:45:55 2005
New Revision: 267467

URL: http://svn.apache.org/viewcvs?rev=267467&view=rev
Log:
Added some logs

Modified:
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixTransformer.java

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixTransformer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixTransformer.java?rev=267467&r1=267466&r2=267467&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixTransformer.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixTransformer.java
Sat Sep  3 07:45:55 2005
@@ -594,6 +594,11 @@
     	LdapMessage twixMessage = (LdapMessage) obj;
     	int messageId = twixMessage.getMessageId();
     	
+    	if ( log.isDebugEnabled() )
+    	{
+    		log.debug( "Transforming LdapMessage <" + messageId + ", " + twixMessage.getMessageTypeName()
+ "> from Twix to Snickers.");
+    	}
+    	
         Message snickersMessage = null ;
         
         int messageType = twixMessage.getMessageType();
@@ -671,6 +676,10 @@
         		
                 ControlImpl snickersControl = new ControlImpl( snickersMessage )
                 {
+                	// Just to avoid a compilation warning !!!
+                	public static final long serialVersionUID = 1L;
+                	
+                	
                     public byte[] getEncodedValue()
                     {
                         return null;
@@ -1070,8 +1079,9 @@
 		
     	if (log.isDebugEnabled())
     	{
-    		log.debug( "Transformed message : " + twixMessage.toString() );
+    		log.debug( "Transformed message : " + twixMessage );
     	}
+    	
     	return twixMessage;
     }
 }



Mime
View raw message