Bug 764489 - reduce sutAgent logcat messages; r=jmaher
authorGeoff Brown <gbrown@mozilla.com>
Mon, 18 Jun 2012 21:32:20 -0700
changeset 101796 aa2b91774fead732aad8e229c9e3dac2f0dd40c8
parent 101795 8cc7aa5c0c95098537e6b769de88bdacff8d4aba
child 101797 19bfe36cace83d48533efd889e1c5658e377ef2e
push id1316
push userakeybl@mozilla.com
push dateMon, 27 Aug 2012 22:37:00 +0000
treeherdermozilla-beta@db4b09302ee2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs764489
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 764489 - reduce sutAgent logcat messages; r=jmaher
build/mobile/sutagent/android/DoCommand.java
--- a/build/mobile/sutagent/android/DoCommand.java
+++ b/build/mobile/sutagent/android/DoCommand.java
@@ -303,26 +303,24 @@ public class DoCommand {
 
             case PULL:
                 if (Argc >= 2) {
                     long lOff = 0;
                     long lLen = -1;
                     if (Argc > 2) {
                         try {
                             lOff = Long.parseLong(Argv[2].trim());
-                            System.out.println("offset = " + lOff);
                         } catch (NumberFormatException nfe) {
                             lOff = 0;
                             System.out.println("NumberFormatException: " + nfe.getMessage());
                         }
                     }
                     if (Argc == 4) {
                         try {
                             lLen = Long.parseLong(Argv[3].trim());
-                            System.out.println("length = " + lLen);
                         } catch (NumberFormatException nfe) {
                             lLen = -1;
                             System.out.println("NumberFormatException: " + nfe.getMessage());
                         }
                     }
                     strReturn = Pull(Argv[1], lOff, lLen, cmdOut);
                 } else {
                     strReturn = sErrorPrefix + "Wrong number of arguments for pull command!";
@@ -331,17 +329,16 @@ public class DoCommand {
 
             case PUSH:
                 if (Argc == 3)
                     {
                     long lArg = 0;
                     try
                         {
                         lArg = Long.parseLong(Argv[2].trim());
-                        System.out.println("long l = " + lArg);
                         }
                     catch (NumberFormatException nfe)
                         {
                         System.out.println("NumberFormatException: " + nfe.getMessage());
                         }
 
                     strReturn = Push(Argv[1], in, lArg);
                     }
@@ -1496,17 +1493,16 @@ private void CancelNotification()
                 }
                 srcFile.close();
                 byte [] hash = digest.digest();
 
                 sRet = getHex(hash);
             }
             catch (FileNotFoundException e) {
                 sRet += " file not found";
-                Log.d("SUT", "HashFile: "+e);
             }
             catch (IOException e) {
                 sRet += " io exception";
                 e.printStackTrace();
             }
         }
         return(sRet);
     }
@@ -3495,17 +3491,16 @@ private void CancelNotification()
                 try {
                     outThrd.join(10000);
                     int nRetCode = pProc.exitValue();
                     sRet = "return code [" + nRetCode + "]";
                     break;
                     }
                 catch (IllegalThreadStateException itse) {
                     lcv++;
-                    Log.d("SUT", "StartPrg waited 10s for "+progArray[0]);
                     }
                 }
             }
         catch (IOException e)
             {
             e.printStackTrace();
             }
         catch (InterruptedException e)
@@ -3626,17 +3621,16 @@ private void CancelNotification()
                     try {
                         outThrd.join(10000);
                         int nRetCode = pProc.exitValue();
                         sRet = "return code [" + nRetCode + "]";
                         lcv = 30;
                         }
                     catch (IllegalThreadStateException itse) {
                         lcv++;
-                        Log.d("SUT", "StartPrg2 waited 10s for "+theArgs[0]);
                         }
                     }
                 }
             else
                 {
                 Intent preIntent = new Intent();
                 for (lcv = 0; lcv < envArray.length; lcv++)
                     {