Add some logs to show size of cached lists on refetch
This commit is contained in:
parent
6e0e2c7864
commit
136cf5f15b
@ -33,7 +33,7 @@ class GlobalCache(
|
||||
fun updateCaches() {
|
||||
val stopwatch = StopWatch()
|
||||
stopwatch.start()
|
||||
logger.info("Updating the cache!")
|
||||
logger.info("Updating the cache...")
|
||||
|
||||
runBlocking {
|
||||
val rssFeedDeferred = async { rssService.generateFeed() }
|
||||
@ -49,6 +49,8 @@ class GlobalCache(
|
||||
|
||||
stopwatch.stop()
|
||||
logger.info("Cache updated in {} seconds", String.format("%.2f", stopwatch.totalTimeSeconds))
|
||||
logger.info("[CACHE]: Similar replays count: {}", similarReplays?.size)
|
||||
logger.info("[CACHE]: Suspicious scores count: {}", suspiciousScores?.size)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user