File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
dd-java-agent/agent-jmxfetch/src/main/java/datadog/trace/agent/jmxfetch Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,16 @@ public void run() {
142142 if (!appConfig .getExitWatcher ().shouldExit ()) {
143143 try {
144144 final int result = app .run ();
145- log .error ("jmx collector exited with result: {}" , result );
145+ if (result != 0 ) {
146+ log .error ("jmx collector exited with result: {}" , result );
147+ }
146148 } catch (final Exception e ) {
147- log .error ("Exception in jmx collector thread" , e );
149+ String message = e .getMessage ();
150+ boolean ignoredException =
151+ message != null && message .startsWith ("Shutdown in progress" );
152+ if (!ignoredException ) {
153+ log .error ("Exception in jmx collector thread" , e );
154+ }
148155 }
149156 }
150157 // always wait before next attempt
You can’t perform that action at this time.
0 commit comments