Explorar o código

增加排查日志

jiandong.liu hai 1 mes
pai
achega
c04c391ef2

+ 3 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/remote/FeatureV2RemoteService.java

@@ -28,8 +28,10 @@ public class FeatureV2RemoteService {
             return Collections.emptyMap();
         }
         try {
+            long start = System.currentTimeMillis();
             Map<String, String> result = client.multiGetFeature(protos);
-            log.debug("FeatureV2RemoteService.getFeature: protos.size={}, result.size={}", protos.size(), result != null ? result.size() : 0);
+            log.debug("FeatureV2RemoteService.getFeature: protos.size={}, result.size={}, costTime={}",
+                    protos.size(), result != null ? result.size() : 0, System.currentTimeMillis() - start);
             return result;
         } catch (Exception e) {
             log.error("FeatureV2RemoteService.getFeature: unexpected exception", e);