Merge remote-tracking branch 'origin/3.0.x'

This commit is contained in:
Olga MaciaszekSharma
2021-07-26 16:21:26 +02:00

View File

@@ -109,7 +109,9 @@ public class DiscoveryClientServiceInstanceListSupplier implements ServiceInstan
}
private void logException(Throwable error) {
LOG.error(String.format("Exception occurred while retrieving instances for service %s", serviceId), error);
if (LOG.isErrorEnabled()) {
LOG.error(String.format("Exception occurred while retrieving instances for service %s", serviceId), error);
}
}
}