Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,16 @@ public void run() {
if (!appConfig.getExitWatcher().shouldExit()) {
try {
final int result = app.run();
log.error("jmx collector exited with result: {}", result);
if (result != 0) {
log.warn("jmx collector exited with error code: {}", result);
}
} catch (final Exception e) {
log.error("Exception in jmx collector thread", e);
String message = e.getMessage();
boolean ignoredException =
message != null && message.startsWith("Shutdown in progress");
if (!ignoredException) {
log.warn("Exception in jmx collector thread", e);
}
}
}
// always wait before next attempt
Expand Down
Loading