[tor-commits] [orbot/master] removed static call to TorService logging
n8fr8 at torproject.org
n8fr8 at torproject.org
Fri Oct 26 04:17:02 UTC 2012
commit 0e5b24e6d94f5ad3b1bbc2eecd8b433057d91e7f
Author: n8fr8 <nathan at freitas.net>
Date: Thu Oct 25 15:29:47 2012 +0530
removed static call to TorService logging
---
.../android/service/TorServiceUtils.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/org/torproject/android/service/TorServiceUtils.java b/src/org/torproject/android/service/TorServiceUtils.java
index 9a4d9ff..e21b745 100644
--- a/src/org/torproject/android/service/TorServiceUtils.java
+++ b/src/org/torproject/android/service/TorServiceUtils.java
@@ -48,22 +48,22 @@ public class TorServiceUtils implements TorServiceConstants {
int exitCode = TorServiceUtils.doShellCommand(cmd, log, false, true);
if (exitCode == 0) {
- TorService.logMessage("root exists, but not sure about permissions");
+ Log.d(TorConstants.TAG,"root exists, but not sure about permissions");
return true;
}
} catch (IOException e) {
//this means that there is no root to be had (normally) so we won't log anything
- TorService.logException("Error checking for root access",e);
+ Log.e(TorConstants.TAG,"Error checking for root access",e);
}
catch (Exception e) {
- TorService.logException("Error checking for root access",e);
+ Log.e(TorConstants.TAG,"Error checking for root access",e);
//this means that there is no root to be had (normally)
}
- TorService.logMessage("Could not acquire root permissions");
+ Log.e(TorConstants.TAG,"Could not acquire root permissions");
return false;
@@ -125,7 +125,7 @@ public class TorServiceUtils implements TorServiceConstants {
}
catch (NumberFormatException e)
{
- TorService.logException("unable to parse process pid: " + line,e);
+ Log.e("TorServiceUtils","unable to parse process pid: " + line,e);
}
}
@@ -185,7 +185,7 @@ public class TorServiceUtils implements TorServiceConstants {
for (int i = 0; i < cmds.length; i++)
{
- TorService.logMessage("executing shell cmd: " + cmds[i] + "; runAsRoot=" + runAsRoot + ";waitFor=" + waitFor);
+ // 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