From 78cd6c8e7987d025805c0ac766a4787833b36691 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 23 Aug 2018 20:32:25 +0000 Subject: [PATCH] Limit logcat to 500 lines Fixes #44 --- app/src/main/java/eu/faircode/email/Helper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 67047411..e66e0437 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -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;