ARTEMIS-4191 Adding logger.debug on JournalImpl::needsCompact

This commit is contained in:
Clebert Suconic 2023-03-02 10:00:26 -05:00
parent dc7d1e25cc
commit de7920d68a
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}