Log exceptions as errors

This commit is contained in:
Tim Ysewyn
2021-03-03 22:17:58 +01:00
parent d55b09b598
commit 894b7d25c9

View File

@@ -115,11 +115,9 @@ public class DiscoveryClientServiceInstanceListSupplier
}
private void logException(Throwable error) {
if (LOG.isDebugEnabled()) {
LOG.debug(String.format(
"Exception occurred while retrieving instances for service %s",
serviceId), error);
}
LOG.error(String.format(
"Exception occurred while retrieving instances for service %s",
serviceId), error);
}
}