jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r1352794 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
Date Fri, 22 Jun 2012 08:11:03 GMT
Author: ckoell
Date: Fri Jun 22 08:11:02 2012
New Revision: 1352794

URL: http://svn.apache.org/viewvc?rev=1352794&view=rev
Log:
JCR-3275 Audit log debug level

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java?rev=1352794&r1=1352793&r2=1352794&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cluster/ClusterNode.java
Fri Jun 22 08:11:02 2012
@@ -687,8 +687,10 @@ public class ClusterNode implements Runn
                 long updateSize = updateSizeValue != null? (Long)updateSizeValue : 0;
                 updateCount.compareAndSet(Integer.MAX_VALUE, 0);
 
-                auditLogger.info("[{}] {} {} ({})", new Object[]{updateCount.incrementAndGet(),

+                if (auditLogger.isDebugEnabled()) {
+                	auditLogger.debug("[{}] {} {} ({})", new Object[]{updateCount.incrementAndGet(),

                         record.getRevision(), path, updateSize});
+                }
 
             } catch (JournalException e) {
                 String msg = "Unable to commit log entry.";
@@ -901,8 +903,10 @@ public class ClusterNode implements Runn
                     + ":" + EventState.getCommonPath(eventStates, null);
 
             updateCount.compareAndSet(Integer.MAX_VALUE, 0);
-            auditLogger.info("[{}] {} {}", new Object[]{updateCount.incrementAndGet(), 
+            if (auditLogger.isDebugEnabled()) {
+            	auditLogger.debug("[{}] {} {}", new Object[]{updateCount.incrementAndGet(),

                     record.getRevision(), path});
+            }
 
             listener.externalUpdate(record.getChanges(), eventStates,
                     record.getTimestamp(), record.getUserData());



Mime
View raw message