Skip to content

Commit

Permalink
Merge pull request #27 from kdebisschop/temp-file-copy-message-should…
Browse files Browse the repository at this point in the history
…-be-debug

When copying file, movement of temp file should be debug-only message resolves #26
  • Loading branch information
kdebisschop authored Feb 12, 2020
2 parents 13f4298 + 9aee242 commit f4c9ad9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import com.dtolabs.rundeck.core.common.Framework;
import com.dtolabs.rundeck.core.common.INodeEntry;
import com.dtolabs.rundeck.core.execution.ExecutionContext;
import com.dtolabs.rundeck.core.execution.ExecutionLogger;
import com.dtolabs.rundeck.core.execution.impl.common.BaseFileCopier;
import com.dtolabs.rundeck.core.execution.script.ScriptfileUtils;
import com.dtolabs.rundeck.core.execution.service.FileCopier;
Expand Down Expand Up @@ -135,8 +136,10 @@ private String copyFile(final ExecutionContext context, final File scriptfile, f
: BaseFileCopier.writeTempFile(context, scriptfile, input, script);

// Copy the file over
System.out.println("copying file: '" + localTempfile.getAbsolutePath() + "' to: '" + node.getNodename() + ":"
+ remotefile + "'");
ExecutionLogger logger = context.getExecutionLogger();
String absPath = localTempfile.getAbsolutePath();
String message = "copying file: '" + absPath + "' to: '" + node.getNodename() + ":" + remotefile + "'";
logger.log(DEBUG_LEVEL, message);

Framework framework = context.getFramework();
String project = context.getFrameworkProject();
Expand Down

0 comments on commit f4c9ad9

Please sign in to comment.