Skip to content

Commit

Permalink
Update debug logging (#2719)
Browse files Browse the repository at this point in the history
my thought here is that JAVA_OPT and JAVA_OPTIONS are just conventions
that some app servers use to populate the command line args, so those
should show up in "Input arguments", while JAVA_TOOL_OPTIONS and
_JAVA_OPTIONS are read directly by the JVM, so don't show up in the
command line args
  • Loading branch information
trask committed Nov 18, 2022
1 parent 950f6c6 commit c03c8c2
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,7 @@ private static void logJavaInfo() {
startupLogger.debug("Classpath: " + System.getProperty("java.class.path"));
startupLogger.debug(
"Input arguments: " + ManagementFactory.getRuntimeMXBean().getInputArguments());
startupLogger.debug(
"JAVA_OPTS: "
+ System.getenv("JAVA_OPTS")
+ ", _JAVA_OPTIONS: "
+ System.getenv("_JAVA_OPTIONS")
+ ", JAVA_OPTIONS: "
+ System.getenv("JAVA_OPTIONS"));
startupLogger.debug("_JAVA_OPTIONS: " + System.getenv("_JAVA_OPTIONS"));
startupLogger.debug("JAVA_TOOL_OPTIONS: " + System.getenv("JAVA_TOOL_OPTIONS"));
}

Expand Down

0 comments on commit c03c8c2

Please sign in to comment.