Repository: incubator-gobblin
Updated Branches:
  refs/heads/master df75b13e1 -> 55dafd67e


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 #2235 from HappyRay/move-verbose-log-to-
debug-level


Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/55dafd67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/55dafd67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/55dafd67

Branch: refs/heads/master
Commit: 55dafd67edb0c01f2c1f0e243023bf088637ac78
Parents: df75b13
Author: Ray Yang <[email protected]>
Authored: Wed Jan 10 14:23:19 2018 -0800
Committer: Hung Tran <[email protected]>
Committed: Wed Jan 10 14:23:32 2018 -0800

----------------------------------------------------------------------
 .../java/org/apache/gobblin/cluster/SingleTaskLauncher.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/55dafd67/gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTaskLauncher.java
----------------------------------------------------------------------
diff --git 
a/gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTaskLauncher.java
 
b/gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTaskLauncher.java
index 77c74cb..97f6880 100644
--- 
a/gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTaskLauncher.java
+++ 
b/gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTaskLauncher.java
@@ -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;

Reply via email to