Authored by Gino Zhang

修改日志打印的参数

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