From 0e5b24e6d94f5ad3b1bbc2eecd8b433057d91e7f Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Thu, 25 Oct 2012 15:29:47 +0530 Subject: [PATCH] removed static call to TorService logging --- .../torproject/android/service/TorServiceUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/org/torproject/android/service/TorServiceUtils.java b/src/org/torproject/android/service/TorServiceUtils.java index 9a4d9fff..e21b7456 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");