jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r995033 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
Date Wed, 08 Sep 2010 12:49:07 GMT
Author: jukka
Date: Wed Sep  8 12:49:06 2010
New Revision: 995033

URL: http://svn.apache.org/viewvc?rev=995033&view=rev
Log:
JCR-2741: Improved logging for session operations

Use millisecond precision to make performance logs easier to understand

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java?rev=995033&r1=995032&r2=995033&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
Wed Sep  8 12:49:06 2010
@@ -162,12 +162,13 @@ public class SessionState {
                     // Perform the actual operation, optionally with debug logs
                     if (log.isDebugEnabled()) {
                         log.debug("Performing {}", operation);
-                        long start = System.nanoTime();
+                        long start = System.currentTimeMillis();
                         try {
                             return operation.perform(context);
                         } finally {
-                            log.debug("{} performed in {}ns",
-                                    operation, System.nanoTime() - start);
+                            log.debug("{} performed in {}ms",
+                                    operation,
+                                    System.currentTimeMillis() - start);
                         }
                     } else {
                         return operation.perform(context);



Mime
View raw message