directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1137369 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLogCursor.java
Date Sun, 19 Jun 2011 13:47:20 GMT
Author: kayyagari
Date: Sun Jun 19 13:47:19 2011
New Revision: 1137369

URL: http://svn.apache.org/viewvc?rev=1137369&view=rev
Log:
o replaced sysout with logger

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

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLogCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLogCursor.java?rev=1137369&r1=1137368&r2=1137369&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLogCursor.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLogCursor.java
Sun Jun 19 13:47:19 2011
@@ -27,6 +27,8 @@ import org.apache.activemq.broker.region
 import org.apache.activemq.command.ActiveMQObjectMessage;
 import org.apache.activemq.command.ActiveMQQueue;
 import org.apache.directory.shared.ldap.model.cursor.AbstractCursor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -36,6 +38,8 @@ import org.apache.directory.shared.ldap.
 class ReplicaEventLogCursor extends AbstractCursor<ReplicaEventMessage>
 {
 
+    private static final Logger LOG = LoggerFactory.getLogger( ReplicaEventLogCursor.class
);
+    
     private ActiveMQQueueBrowser browser;
 
     private Queue regionQueue;
@@ -90,7 +94,7 @@ class ReplicaEventLogCursor extends Abst
     public ReplicaEventMessage get() throws Exception
     {
         ActiveMQObjectMessage amqObj = ( ActiveMQObjectMessage ) browser.nextElement();
-        System.out.println( "========================================= " + amqObj );
+        LOG.debug( "ReplicaEventMessage: {}", amqObj );
         ReplicaEventMessage message = ( ReplicaEventMessage ) amqObj.getObject();
         regionQueue.removeMessage( amqObj.getJMSMessageID() );
         



Mime
View raw message