From ad849c77dff7b379116f4d57510c7b9136c7f4c0 Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Sun, 1 Nov 2015 14:37:01 -0500 Subject: [PATCH] NIFI-1090: Fixed log message that was at info level but should have been debug level --- .../controller/repository/FileSystemRepository.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/FileSystemRepository.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/FileSystemRepository.java index 72a50ecaea..5baddbb40d 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/FileSystemRepository.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/FileSystemRepository.java @@ -1208,7 +1208,15 @@ public class FileSystemRepository implements ContentRepository { final long startNanos = System.nanoTime(); final long toFree = minRequiredSpace - usableSpace; final BlockingQueue 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;