GitLab Mirror pushed to branch trunk at cms-community / hippo-jackrabbit

Commits:
18016b37 by Claus Köll at 2018-01-10T13:02:25+00:00
Debug Log

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1820746 
13f79535-47bb-0310-9956-ffa450edef68

- - - - -


1 changed file:

- 
jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java


Changes:

=====================================
jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
=====================================
--- 
a/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
+++ 
b/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java
@@ -763,10 +763,11 @@ public abstract class AbstractBundlePersistenceManager 
implements
     private NodePropBundle getBundleCacheMiss(NodeId id)
             throws ItemStateException {
         long time = System.nanoTime();
-        log.debug("Loading bundle {}", id);
         NodePropBundle bundle = loadBundle(id);
         cacheMissDuration.addAndGet(System.nanoTime() - time);
         cacheMissCounter.incrementAndGet();
+        final long timeMs = time / 1000000;
+        log.debug("Loading bundle {} in {}ms", id, timeMs);
         if (bundle != null) {
             bundle.markOld();
             bundles.put(id, bundle, bundle.getSize());
@@ -796,13 +797,14 @@ public abstract class AbstractBundlePersistenceManager 
implements
      */
     private void putBundle(NodePropBundle bundle) throws ItemStateException {
         long time = System.nanoTime();
-        log.debug("Storing bundle {}", bundle.getId());
         storeBundle(bundle);
         if (auditLogger.isDebugEnabled()) {
                auditLogger.debug("{} ({})", bundle.getId(), bundle.getSize());
         }
         writeDuration.addAndGet(System.nanoTime() - time);
         writeCounter.incrementAndGet();
+        final long timeMs = time / 1000000;
+        log.debug("Stored bundle {} in {}ms", bundle.getId(), timeMs);
 
         bundle.markOld();
 



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-jackrabbit/commit/18016b37dfa5f4be92ec1c1c5ad1ddee15a816fe

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-jackrabbit/commit/18016b37dfa5f4be92ec1c1c5ad1ddee15a816fe
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to