Browse Source

Hide some logs

hbw_build
Wong Joon Hui 3 years ago
parent
commit
b2eb83d915
  1. 2
      app/src/main/java/com/cst/im30/MainApplication.java
  2. 4
      app/src/main/java/com/cst/im30/activity/MainActivity.java
  3. 2
      app/src/main/java/com/cst/im30/utility/CloudWatchLogger.java
  4. 2
      app/src/main/java/com/cst/im30/utility/Logger.java

2
app/src/main/java/com/cst/im30/MainApplication.java

@ -80,7 +80,7 @@ public class MainApplication extends Application {
code = null; code = null;
status = null; status = null;
Logger.logD("RESET"); //Logger.logD("RESET");
} }
@Override @Override

4
app/src/main/java/com/cst/im30/activity/MainActivity.java

@ -366,7 +366,7 @@ public class MainActivity extends AppCompatActivity implements CallableInterface
@Override @Override
public void callBack(String source, Object object) { public void callBack(String source, Object object) {
Logger.logD(source); // Logger.logD(source);
String code = MainApplication.code; String code = MainApplication.code;
String status = MainApplication.status; String status = MainApplication.status;
@ -695,7 +695,7 @@ public class MainActivity extends AppCompatActivity implements CallableInterface
} }
public void startWork() { public void startWork() {
Logger.logD("START WORK"); //Logger.logD("START WORK");
MainApplication.working = true; MainApplication.working = true;
} }

2
app/src/main/java/com/cst/im30/utility/CloudWatchLogger.java

@ -94,7 +94,7 @@ public class CloudWatchLogger {
} }
putLogEventsResult = client.putLogEvents(putLogEventsRequest); putLogEventsResult = client.putLogEvents(putLogEventsRequest);
Logger.logD("Pushed log to AWS Cloudwatch"); //Logger.logD("Pushed log to AWS Cloudwatch");
}); });
t.start(); t.start();
t.join(); t.join();

2
app/src/main/java/com/cst/im30/utility/Logger.java

@ -106,7 +106,7 @@ public class Logger {
outputStreamWriter.write(dataToWrite); outputStreamWriter.write(dataToWrite);
outputStreamWriter.close(); outputStreamWriter.close();
Logger.logD("Recorded to " + logFile.getName()); //Logger.logD("Recorded to " + logFile.getName());
Bugfender.i("IC SCAN", dataToWrite); Bugfender.i("IC SCAN", dataToWrite);

Loading…
Cancel
Save