|
|
@@ -24,9 +24,17 @@ public class FeatureV2RemoteService {
|
|
|
|
|
|
public Map<String, String> getFeature(List<FeatureKeyProto> protos) {
|
|
|
if (CollectionUtils.isEmpty(protos)) {
|
|
|
+ log.debug("FeatureV2RemoteService.getFeature: protos is empty");
|
|
|
+ return Collections.emptyMap();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ Map<String, String> result = client.multiGetFeature(protos);
|
|
|
+ log.debug("FeatureV2RemoteService.getFeature: protos.size={}, result.size={}", protos.size(), result != null ? result.size() : 0);
|
|
|
+ return result;
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("FeatureV2RemoteService.getFeature: unexpected exception", e);
|
|
|
return Collections.emptyMap();
|
|
|
}
|
|
|
- return client.multiGetFeature(protos);
|
|
|
}
|
|
|
|
|
|
}
|