Commit 3f1de78f by Johannes Edmeier

Log with debug if application is known to be offline

To not pollute the log with warnings when an app is offline log the exception with debug when the application status already was offline before the check. So only the first exception when the state changes to offline will be logged. closes #125
parent 440a342a
......@@ -92,7 +92,11 @@ public class StatusUpdater implements ApplicationEventPublisherAware {
}
} catch (Exception ex) {
LOGGER.warn("Couldn't retrieve status for {}", application, ex);
if ("OFFLINE".equals(application.getStatusInfo().getStatus())) {
LOGGER.debug("Couldn't retrieve status for {}", application, ex);
} else {
LOGGER.warn("Couldn't retrieve status for {}", application, ex);
}
return StatusInfo.ofOffline();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment