Small change to log message

Shouldn't call getJmxUrl just to log... it has too
much machinery attached to it to just call it frivoulously
(i.e. this is not just a field, but does a bunch of VM connecting
etc.)
This commit is contained in:
Kris De Volder
2018-08-21 15:42:54 -07:00
parent a4734b8029
commit 2499d8b542

View File

@@ -122,7 +122,7 @@ public abstract class AbstractSpringBootApp implements SpringBootApp {
try {
return doit.apply(jmxConnector.get());
} catch (Exception e) {
logger.info("Evicting JMX connector {} because of error: {}", getJmxUrl(), ExceptionUtil.getMessage(e));
logger.info("Evicting JMX connector {} because of error: {}", jmxConnector, ExceptionUtil.getMessage(e));
jmxConnector.evict();
throw e;
}