Browse Source

Limit logcat to 500 lines

Fixes #44
main
M66B 6 years ago
parent
commit
78cd6c8e79
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/src/main/java/eu/faircode/email/Helper.java

+ 5
- 1
app/src/main/java/eu/faircode/email/Helper.java View File

@ -107,7 +107,11 @@ public class Helper {
Process proc = null;
BufferedReader br = null;
try {
String[] cmd = new String[]{"logcat", "-d", "-v", "threadtime", TAG + ":I"};
String[] cmd = new String[]{"logcat",
"-d",
"-v", "threadtime",
"-t", "500",
TAG + ":I"};
proc = Runtime.getRuntime().exec(cmd);
br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String line;


Loading…
Cancel
Save