From b60d7648d7fc663c70731bf3ab5b1b85f2bfa416 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 6 Jul 2020 07:55:59 +0200 Subject: [PATCH] Reduced logging --- app/src/main/java/eu/faircode/email/ContactInfo.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index dfeddb0116..89698a57ba 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -371,16 +371,13 @@ public class ContactInfo { } } } catch (Throwable ex) { - if (isRecoverable(ex, context)) - Log.w(ex); - else { - Log.e(ex); + Log.w(ex); + if (!isRecoverable(ex, context)) try { file.createNewFile(); } catch (IOException ex1) { Log.e(ex1); } - } } } }