jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1183240 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cache/CacheManager.java
Date Fri, 14 Oct 2011 08:42:48 GMT
Author: stefan
Date: Fri Oct 14 08:42:48 2011
New Revision: 1183240

URL: http://svn.apache.org/viewvc?rev=1183240&view=rev
Log:
JCR-3098: adjusting log levels

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cache/CacheManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cache/CacheManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cache/CacheManager.java?rev=1183240&r1=1183239&r2=1183240&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cache/CacheManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/cache/CacheManager.java
Fri Oct 14 08:42:48 2011
@@ -156,13 +156,13 @@ public class CacheManager implements Cac
      * Log info about the caches.
      */
     private void logCacheStats() {
-        if (log.isInfoEnabled()) {
+        if (log.isDebugEnabled()) {
             long now = System.currentTimeMillis();
             if (now < nextLogStats) {
                 return;
             }
             for (Cache cache : caches.keySet()) {
-                log.info(cache.getCacheInfoAsString());
+                log.debug(cache.getCacheInfoAsString());
             }
             nextLogStats = now + minLogStatsInterval;
         }
@@ -172,8 +172,8 @@ public class CacheManager implements Cac
      * Re-calculate the maximum memory for each cache, and set the new limits.
      */
     private void resizeAll() {
-        if (log.isDebugEnabled()) {
-            log.debug("resizeAll size=" + caches.size());
+        if (log.isTraceEnabled()) {
+            log.trace("resizeAll size=" + caches.size());
         }
         // get strong references
         // entries in a weak hash map may disappear any time
@@ -238,8 +238,8 @@ public class CacheManager implements Cac
         // set the new limit
         for (CacheInfo info : infos) {
             Cache cache = info.getCache();
-            if (log.isDebugEnabled()) {
-                log.debug(cache + " now:" + cache.getMaxMemorySize() + " used:"
+            if (log.isTraceEnabled()) {
+                log.trace(cache + " now:" + cache.getMaxMemorySize() + " used:"
                         + info.getMemoryUsed() + " access:" + info.getAccessCount()
                         + " new:" + info.getMemory());
             }



Mime
View raw message