Browse Source

clear log

supeng 3 months ago
parent
commit
3b2b51d5e3

+ 0 - 6
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/filter/strategy/GeneralSpiderStrategy.java

@@ -98,7 +98,6 @@ public class GeneralSpiderStrategy implements FilterStrategy {
 
     @Override
     public List<Long> filter(FilterParam param) {
-        log.info("generalSpiderStrategy filter param {}", JSON.toJSONString(param));
         if (param == null) {
             return Collections.emptyList();
         }
@@ -112,7 +111,6 @@ public class GeneralSpiderStrategy implements FilterStrategy {
                 .map(id -> String.format(keyFormat, id))
                 .collect(Collectors.toList());
 
-        log.info("generalSpiderStrategy filter keys {}", JSON.toJSONString(keys));
 
         List<String> uids = redisTemplate.opsForValue().multiGet(keys);
         List<Long> cacheMissVideoIds = new ArrayList<>();
@@ -157,14 +155,10 @@ public class GeneralSpiderStrategy implements FilterStrategy {
         //不过滤的视频
         Set<Long> data = generalSpiderExcludeVideoCache.getUnchecked(generalSpiderExcludeVideoCacheKey);
 
-
-        log.info("generalSpiderStrategy filter generalSpiderUserIds = {} data = {}", JSON.toJSONString(generalSpiderUserIds),  JSON.toJSONString(data));
-
         List<Long> videoIds = param.getVideoIds().stream()
                 .filter(l -> data.contains(l)
                         || (vid2UidMap.containsKey(l) && !generalSpiderUserIds.contains(vid2UidMap.get(l))))
                 .collect(Collectors.toList());
-        log.info("generalSpiderStrategy filter videoIds = {}", JSON.toJSONString(videoIds));
 
         return videoIds;
     }

+ 1 - 1
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/xxl/GeneralSpiderUserCacheJob.java

@@ -41,7 +41,7 @@ public class GeneralSpiderUserCacheJob {
                 uids.toArray(new String[uids.size()]));
         redisTemplate.expire(GeneralSpiderStrategy.GENERAL_SPIDER_USER_KEY, Duration.ofDays(2));
         
-        XxlJobLogger.log("updateGeneralSpiderUserCache, uids:{}", uids);
+        XxlJobLogger.log("updateGeneralSpiderUserCache, uids size:{}", uids.size());
         return ReturnT.SUCCESS;
     }