Log child process cmd line at the debug level
Due to the long class path, the log can be long
and makes the debug
log less readable.
Testing:
Verified with the integration test with a custom
log4j config.
Closes from HappyRay/move-verbose-log-to-
debug-level
@@ -52,7 +52,10 @@ class SingleTaskLauncher {
throws IOException {
final SingleTaskLauncher.CmdBuilder cmdBuilder = this.new CmdBuilder(jobId, workUnitFilePath);
final List<String> command = cmdBuilder.build();
- logger.info("Launching a task process. cmd: " + command);
+ logger.info("Launching a task process.");
+
+ // The -cp parameter list can be very long.
+ logger.debug("cmd: " + command);
final Process taskProcess = this.processBuilder.start(command);
return taskProcess;
