From ace2c074c0a89675c7fba8f7436b35393040f088 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 21 Nov 2020 08:04:33 +0100 Subject: [PATCH] Reduced logging --- app/src/main/java/eu/faircode/email/MessageHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 24f45ab046..f879020883 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1848,7 +1848,10 @@ public class MessageHelper { Charset detected = CharsetHelper.detect(result); if (!(StandardCharsets.US_ASCII.equals(detected) && StandardCharsets.UTF_8.equals(c))) - Log.e("Converting detected=" + detected + " meta=" + c); + if (BuildConfig.PLAY_STORE_RELEASE) + Log.w("Converting detected=" + detected + " meta=" + c); + else + Log.e("Converting detected=" + detected + " meta=" + c); // Convert result = new String(result.getBytes(StandardCharsets.ISO_8859_1), c);