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