zhaohaipeng 2 napja
szülő
commit
b05e13aa65

+ 1 - 2
recommend-feature-produce/src/main/java/com/tzld/piaoquan/recommend/feature/produce/service/RedisService.java

@@ -23,7 +23,6 @@ import java.util.concurrent.TimeUnit;
  *
  * @author dyp
  */
-@Slf4j
 public class RedisService implements Serializable {
     private int port = 6379;
     private String password = "";
@@ -49,7 +48,7 @@ public class RedisService implements Serializable {
             String redisKey = redisKey(record, config);
             String value = JSONUtils.toJson(record);
             if (RandomUtils.nextDouble() <= 0.001d) {
-                log.info("redisKey: {}, value: {}", redisKey, value);
+                System.out.printf("redisKey: %s, value: %s%n", redisKey, value);
             }
             batch.put(redisKey, value);
             if (batch.size() >= 1000) {