[tor-commits] [orbot/master] improved logging of cmd exec
n8fr8 at torproject.org
n8fr8 at torproject.org
Mon Feb 27 04:24:19 UTC 2012
commit ebb7535b0f2e71810cd9543a864e2e3e64431841
Author: Nathan Freitas <nathan at 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");
}
More information about the tor-commits
mailing list