logging: fix detection of updates since startup

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1293866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-02-26 16:34:19 +00:00
parent 1c84da1064
commit 85013ffd31
1 changed files with 4 additions and 3 deletions

View File

@ -229,10 +229,11 @@ public class RecoveryStrategy extends Thread implements SafeStopThread {
if (startingRecentVersions.get(oldIdx) == firstStartingVersion) break; if (startingRecentVersions.get(oldIdx) == firstStartingVersion) break;
} }
if (oldIdx < startingRecentVersions.size()) { if (oldIdx > 0) {
log.info("####### Found new versions added after startup: num=" + (startingRecentVersions.size()-oldIdx)); log.info("####### Found new versions added after startup: num=" + oldIdx);
} }
// TODO: only log at debug level in the future (or move to oldIdx > 0 block)
log.info("###### startupVersions=" + reallyStartingVersions); log.info("###### startupVersions=" + reallyStartingVersions);
log.info("###### currentVersions=" + startingRecentVersions); log.info("###### currentVersions=" + startingRecentVersions);
} }