1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Limit logcat to 500 lines

Fixes #44
This commit is contained in:
M66B 2018-08-23 20:32:25 +00:00
parent 9bee86ad84
commit 78cd6c8e79

View file

@ -107,7 +107,11 @@ public class Helper {
Process proc = null; Process proc = null;
BufferedReader br = null; BufferedReader br = null;
try { 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); proc = Runtime.getRuntime().exec(cmd);
br = new BufferedReader(new InputStreamReader(proc.getInputStream())); br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String line; String line;