NIFI-1090: Fixed log message that was at info level but should have been debug level

This commit is contained in:
Mark Payne 2015-11-01 14:37:01 -05:00
parent b729bf4c19
commit ad849c77df
1 changed files with 9 additions and 1 deletions

View File

@ -1208,7 +1208,15 @@ public class FileSystemRepository implements ContentRepository {
final long startNanos = System.nanoTime();
final long toFree = minRequiredSpace - usableSpace;
final BlockingQueue<ArchiveInfo> fileQueue = archivedFiles.get(containerName);
archiveExpirationLog.info("Currently {} bytes free for Container {}; requirement is {} byte free, so need to free {} bytes", usableSpace, containerName, minRequiredSpace, toFree);
if (archiveExpirationLog.isDebugEnabled()) {
if (toFree < 0) {
archiveExpirationLog.debug("Currently {} bytes free for Container {}; requirement is {} byte free, so no need to free space until an additional {} bytes are used",
usableSpace, containerName, minRequiredSpace, Math.abs(toFree));
} else {
archiveExpirationLog.debug("Currently {} bytes free for Container {}; requirement is {} byte free, so need to free {} bytes",
usableSpace, containerName, minRequiredSpace, toFree);
}
}
ArchiveInfo toDelete;
int deleteCount = 0;