Apache Solr open-source search software
SOLR-4200: Reduce INFO level logging from CachingDirectoryFactory
Chris M. Hostetter2d0001942e43
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 2ede7bc3dfc..5189b6f9eef 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -291,6 +291,9 @@ Other Changes* SOLR-4416: Upgrade to Tika 1.3. (Markus Jelsma via Mark Miller)+* SOLR-4200: Reduce INFO level logging from CachingDirectoryFactory+ (Shawn Heisey via hossman)+================== 4.1.0 ==================Versions of Major Componentsdiff --git a/solr/core/src/java/org/apache/solr/core/CachingDirectoryFactory.java b/solr/core/src/java/org/apache/solr/core/CachingDirectoryFactory.javaindex 422c50332c8..82110530f25 100644--- a/solr/core/src/java/org/apache/solr/core/CachingDirectoryFactory.java+++ b/solr/core/src/java/org/apache/solr/core/CachingDirectoryFactory.java@@ -137,7 +137,7 @@ public abstract class CachingDirectoryFactory extends DirectoryFactory {}assert val.refCnt == 0 : val.refCnt;- log.info("Closing directory when closing factory:" + val.path);+ log.info("Closing directory when closing factory: " + val.path);closeDirectory(val);} catch (Throwable t) {SolrException.log(log, "Error closing directory", t);@@ -158,12 +158,11 @@ public abstract class CachingDirectoryFactory extends DirectoryFactory {throw new IllegalArgumentException("Unknown directory: " + directory+ " " + byDirectoryCache);}- log.info("Releasing directory:" + cacheValue.path);+ log.debug("Releasing directory: " + cacheValue.path);cacheValue.refCnt--;if (cacheValue.refCnt == 0 && cacheValue.doneWithDir) {- log.info("Closing directory:" + cacheValue.path);closeDirectory(cacheValue);byDirectoryCache.remove(directory);@@ -184,7 +183,7 @@ public abstract class CachingDirectoryFactory extends DirectoryFactory {}}try {- log.info("Closing directory:" + cacheValue.path);+ log.info("Closing directory: " + cacheValue.path);cacheValue.directory.close();} catch (Throwable t) {SolrException.log(log, "Error closing directory", t);@@ -276,7 +275,7 @@ public abstract class CachingDirectoryFactory extends DirectoryFactory {byDirectoryCache.put(directory, newCacheValue);byPathCache.put(fullPath, newCacheValue);- log.info("return new directory for " + fullPath + " forceNew:" + forceNew);+ log.info("return new directory for " + fullPath + " forceNew: " + forceNew);} else {cacheValue.refCnt++;}