Authored by Gino Zhang

修改日志打印的参数

... ... @@ -41,13 +41,14 @@ public class IncrementCrawlerService {
List<String> resultList = new ArrayList<>(count);
Set<String> keywordSet = new HashSet<>(count);
Set<ZSetOperations.TypedTuple<String>> redisResults = yhNoSyncZSetOperations.reverseRangeWithScores(RedisKeys.getRedisKey4Yesterday(redisTemplate), 0, count);
String redisKey = RedisKeys.getRedisKey4Yesterday(redisTemplate);
Set<ZSetOperations.TypedTuple<String>> redisResults = yhNoSyncZSetOperations.reverseRangeWithScores(redisKey, 0, count);
for (ZSetOperations.TypedTuple<String> typedTuple : redisResults) {
resultList.add(typedTuple.getValue() + "|" + typedTuple.getScore());
keywordSet.add(typedTuple.getValue());
}
REPORT_LOGGER.info("[key=TopSeachKeywords][RedisKeyTemplate={}][topSeachKeywords={}]", redisTemplate, resultList);
REPORT_LOGGER.info("[key=TopSeachKeywords][redisKey={}][topSeachKeywords={}]", redisKey, resultList);
return keywordSet;
}
... ...