From commits-return-32185-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Fri Jul 29 06:31:33 2011 Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25E9D603C for ; Fri, 29 Jul 2011 06:31:33 +0000 (UTC) Received: (qmail 63085 invoked by uid 500); 29 Jul 2011 06:31:33 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 63026 invoked by uid 500); 29 Jul 2011 06:31:30 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 63005 invoked by uid 99); 29 Jul 2011 06:31:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 06:31:27 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 06:31:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 108EB2388901 for ; Fri, 29 Jul 2011 06:31:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1152119 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLog.java Date: Fri, 29 Jul 2011 06:31:05 -0000 To: commits@directory.apache.org From: kayyagari@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110729063106.108EB2388901@eris.apache.org> Author: kayyagari Date: Fri Jul 29 06:31:05 2011 New Revision: 1152119 URL: http://svn.apache.org/viewvc?rev=1152119&view=rev Log: o moved log statement to the finally called method Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLog.java Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLog.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLog.java?rev=1152119&r1=1152118&r2=1152119&view=diff ============================================================================== --- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLog.java (original) +++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventLog.java Fri Jul 29 06:31:05 2011 @@ -123,7 +123,6 @@ public class ReplicaEventLog */ public void log( EventType event, Entry entry ) { - LOG.debug( "logging entry with Dn {} with the event {}", entry.getDn(), event ); log( new ReplicaEventMessage( event, entry ) ); } @@ -132,6 +131,8 @@ public class ReplicaEventLog { try { + LOG.debug( "logging entry with Dn {} with the event {}", message.getEntry().getDn(), message.getEventType() ); + ActiveMQObjectMessage ObjectMessage = ( ActiveMQObjectMessage ) amqSession.createObjectMessage(); ObjectMessage.setObject( message ); producer.send( ObjectMessage );