Skip to content

Commit

Permalink
Fix logging statement
Browse files Browse the repository at this point in the history
  • Loading branch information
logresearch authored Jul 2, 2024
1 parent 172dc33 commit 981f402
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void enLargeCache() {
private void shrinkCache() {
threadService.runTaskLater(() -> {
Collection<CacheData> values = cache.values();
logger.debug("Shrink cache: {}", values.size());
logger.debug("Shrinking cache, total entries: {}", values.size());
values
.stream()
.filter(e -> e.inMemory())
Expand All @@ -101,7 +101,7 @@ private void shrinkCache() {
return l2.compareTo(l1);
}).limit(5)
.forEach(cacheData -> {
logger.debug("Shrinked: {}", cacheData.key());
logger.debug("Shrunk cache entry: {}", cacheData.key());
byte[] bytes = cacheData.readBytes();
saveInDisk(cacheData.key(), bytes);
totalSize.addAndGet(-bytes.length);
Expand Down

0 comments on commit 981f402

Please sign in to comment.