Skip to content

Commit

Permalink
Merge pull request #648 from logresearch/master
Browse files Browse the repository at this point in the history
Fix misunderstanding logging statement in BinaryCacheServiceImpl.java
  • Loading branch information
rahmanusta committed Jul 10, 2024
2 parents 551c1b3 + 981f402 commit d04e2b3
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 d04e2b3

Please sign in to comment.