소스 검색

update exp code

丁云鹏 3 달 전
부모
커밋
56332dbd1a

+ 1 - 1
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/rank/RankRouter.java

@@ -45,7 +45,7 @@ public class RankRouter {
         if (CollectionUtils.isNotEmpty(abExpCodes)) {
             for (Map.Entry<String, RankService> entry : strategyMap.entrySet()) {
                 if (abExpCodes.contains(entry.getKey())) {
-                    log.info("rank strategies {} {}", entry.getKey(), entry.getValue().getClass().getSimpleName());
+                    //log.info("rank strategies {} {}", entry.getKey(), entry.getValue().getClass().getSimpleName());
                     return entry.getValue().rank(param);
                 }
             }

+ 3 - 3
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/recall/RecallService.java

@@ -47,8 +47,8 @@ public class RecallService implements ApplicationContextAware {
 
     public RecallResult recall(RecallParam param) {
         List<RecallStrategy> strategies = getRecallStrategy(param);
-        log.info("recall strategies {}", JSONUtils.toJson(CommonCollectionUtils.toList(strategies,
-                o -> o.getClass().getSimpleName())));
+//        log.info("recall strategies {}", JSONUtils.toJson(CommonCollectionUtils.toList(strategies,
+//                o -> o.getClass().getSimpleName())));
         CountDownLatch cdl = new CountDownLatch(strategies.size());
         List<Future<RecallResult.RecallData>> recallResultFutures = new ArrayList<>();
         for (final RecallStrategy strategy : strategies) {
@@ -56,7 +56,7 @@ public class RecallService implements ApplicationContextAware {
                 List<Video> result = Collections.emptyList();
                 try {
                     result = strategy.recall(param);
-                    log.info("recall result {} {}", strategy.getClass().getSimpleName(), JSONUtils.toJson(result));
+                    //log.info("recall result {} {}", strategy.getClass().getSimpleName(), JSONUtils.toJson(result));
                 } catch (Throwable e) {
                     log.error("recall error {}", strategy.getClass().getSimpleName(), e);
                 }

+ 0 - 1
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/recall/strategy/AbstractRegionRecallStrategy.java

@@ -104,7 +104,6 @@ public abstract class AbstractRegionRecallStrategy implements RecallStrategy {
             redisTemplate.delete(lastVideoKey);
             poolKey = updateLastVideoRecord(recordKey, param);
         }
-        log.info("poolKey {}", poolKey);
         if (StringUtils.isBlank(poolKey)) {
             return null;
         }