Elaborate on comment.

This commit is contained in:
Tyler Benson 2019-01-31 11:14:06 -08:00
parent ea0dedcee7
commit c89b00f682
1 changed files with 5 additions and 1 deletions

View File

@ -263,7 +263,11 @@ public class TracingAgent {
// Allow setting to skip these automatic checks:
|| ((customLogManagerProp == null && customLogManagerEnv == null)
&& (
// JBoss/Wildfly known to set custom log manager
// JBoss/Wildfly is known to set a custom log manager
// Originally we were checking for the presence of a jboss class,
// but it turns out other non-jboss applications have jboss classes on the classpath.
// This would cause jmxfetch initialization to be delayed indefinitely.
// Checking for an environment variable required by jboss instead.
System.getenv("JBOSS_HOME") != null));
}