directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1557093 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
Date Fri, 10 Jan 2014 11:44:01 GMT
Author: kayyagari
Date: Fri Jan 10 11:44:00 2014
New Revision: 1557093

URL: http://svn.apache.org/r1557093
Log:
log cleanup

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java?rev=1557093&r1=1557092&r2=1557093&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/consumer/ReplicationConsumerImpl.java
Fri Jan 10 11:44:00 2014
@@ -586,7 +586,7 @@ public class ReplicationConsumerImpl imp
             {
                 doSyncSearch( SynchronizationModeEnum.REFRESH_ONLY, reload );
 
-                CONSUMER_LOG.debug( "--------------------- Sleep for a little while ------------------"
);
+                CONSUMER_LOG.debug( "--------------------- Sleep for {} seconds ------------------",
( config.getRefreshInterval() / 1000 ) );
                 Thread.sleep( config.getRefreshInterval() );
                 CONSUMER_LOG.debug( "--------------------- syncing again ------------------"
);
 
@@ -941,8 +941,6 @@ public class ReplicationConsumerImpl imp
 
             lastSavedCookie = new byte[syncCookie.length];
             System.arraycopy( syncCookie, 0, lastSavedCookie, 0, syncCookie.length );
-
-            CONSUMER_LOG.debug( "stored the cookie" );
         }
         catch ( Exception e )
         {
@@ -1003,6 +1001,7 @@ public class ReplicationConsumerImpl imp
             Modification deleteCookieMod = new DefaultModification( ModificationOperation.REMOVE_ATTRIBUTE,
                 cookieAttr );
             session.modify( config.getConfigEntryDn(), deleteCookieMod );
+            CONSUMER_LOG.info( "resetting sync cookie of the consumer with config entry Dn
{}", config.getConfigEntryDn() );
         }
         catch ( Exception e )
         {
@@ -1010,8 +1009,6 @@ public class ReplicationConsumerImpl imp
             CONSUMER_LOG.warn( "{}", e );
         }
 
-        CONSUMER_LOG.info( "resetting sync cookie of the consumer with config entry Dn {}",
config.getConfigEntryDn() );
-
         syncCookie = null;
         lastSavedCookie = null;
     }



Mime
View raw message