diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java index 02eb3995fe..1f6ae936bc 100644 --- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java +++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java @@ -2595,6 +2595,12 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal boolean needCompact = totalLiveSize < compactMargin && dataFiles.length > compactMinFiles; + if (logger.isDebugEnabled()) { + logger.debug("JournalImpl::needsCompact={}, totalBytes={}, dataFiles.length={}, fileSize={}, compactMargin={}, compactingPercentage={}," + + "compactMinFiles={}", needCompact, totalBytes, dataFiles.length, fileSize, + compactMargin, compactPercentage, compactMinFiles); + } + return needCompact; }