Skip to content

Commit

Permalink
ARTEMIS-4191 Adding logger.debug on JournalImpl::needsCompact
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Mar 2, 2023
1 parent dc7d1e2 commit de7920d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2595,6 +2595,12 @@ private boolean needsCompact() throws Exception {

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;

}
Expand Down

0 comments on commit de7920d

Please sign in to comment.