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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user