Skip to content

Commit

Permalink
Modify suitable log level for the cache operate (#13263)
Browse files Browse the repository at this point in the history
  • Loading branch information
aofall committed Oct 27, 2023
1 parent 9146270 commit ef7217a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ protected void init(boolean enableFileCache, String filePath, String fileName, i
try {
cacheStore = FileCacheStoreFactory.getInstance(filePath, fileName, enableFileCache);
Map<String, String> properties = cacheStore.loadCache(entrySize);
logger.info("Successfully loaded " + getName() + " cache from file " + fileName + ", entries " + properties.size());
if (logger.isDebugEnabled()) {
logger.debug("Successfully loaded " + getName() + " cache from file " + fileName + ", entries " + properties.size());
}
for (Map.Entry<String, String> entry : properties.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
Expand Down Expand Up @@ -159,7 +161,9 @@ public void run() {
cache.releaseLock();
}

logger.info("Dumping " + cacheManager.getName() + " caches, latest entries " + properties.size());
if (logger.isDebugEnabled()) {
logger.debug("Dumping " + cacheManager.getName() + " caches, latest entries " + properties.size());
}
cacheStore.refreshCache(properties, DEFAULT_COMMENT, maxFileSize);
}
}
Expand Down

0 comments on commit ef7217a

Please sign in to comment.