From ebb7535b0f2e71810cd9543a864e2e3e64431841 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Sun, 12 Feb 2012 01:25:02 -0500 Subject: [PATCH] improved logging of cmd exec --- src/org/torproject/android/service/TorServiceUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/torproject/android/service/TorServiceUtils.java b/src/org/torproject/android/service/TorServiceUtils.java index cd4429d8..08517d07 100644 --- a/src/org/torproject/android/service/TorServiceUtils.java +++ b/src/org/torproject/android/service/TorServiceUtils.java @@ -161,7 +161,6 @@ public class TorServiceUtils implements TorServiceConstants { public static int doShellCommand(String[] cmds, StringBuilder log, boolean runAsRoot, boolean waitFor) throws Exception { - TorService.logMessage("executing shell cmds: " + cmds[0] + "; runAsRoot=" + runAsRoot + ";waitFor=" + waitFor); Process proc = null; int exitCode = -1; @@ -176,6 +175,8 @@ public class TorServiceUtils implements TorServiceConstants { for (int i = 0; i < cmds.length; i++) { + TorService.logMessage("executing shell cmd: " + cmds[i] + "; runAsRoot=" + runAsRoot + ";waitFor=" + waitFor); + out.write(cmds[i]); out.write("\n"); }