SOLR-4200: Reduce INFO level logging from CachingDirectoryFactory

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1453560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2013-03-06 21:07:35 +00:00
parent d5d1603116
commit 2d0001942e
2 changed files with 7 additions and 5 deletions

View File

@ -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 Components

View File

@ -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);