commit ebb7535b0f2e71810cd9543a864e2e3e64431841 Author: Nathan Freitas nathan@freitas.net Date: Sun Feb 12 01:25:02 2012 -0500
improved logging of cmd exec --- .../android/service/TorServiceUtils.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/android/service/TorServiceUtils.java b/src/org/torproject/android/service/TorServiceUtils.java index cd4429d..08517d0 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"); }
tor-commits@lists.torproject.org