DBBean GC only log if there is a change

This commit is contained in:
Ziver Koc 2016-12-22 17:08:29 +01:00
parent 0f3a1142b3
commit 76efbf10e8

View file

@ -172,7 +172,8 @@ public class DBBeanSQLResultHandler<T> implements SQLResultHandler<T>{
}
}
logger.info("DBBean GarbageCollector has cleared "+removed+" beans from cache.");
if (removed > 0)
logger.info("DBBean GarbageCollector has cleared "+removed+" beans from cache.");
}
}