From 28d8ea73ce63f570c830e5743793342c20b51109 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 25 Jul 2020 07:40:13 +0200 Subject: [PATCH] Reduced debug logging --- .../java/eu/faircode/email/ServiceSynchronize.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 198801bd2c..ee67817021 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1751,13 +1751,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences lastActiveCaps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) && !lastActiveCaps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); - if (reload || BuildConfig.DEBUG) - EntityLog.log(ServiceSynchronize.this, "Connectivity changed " + network + - " caps=" + caps + " reload=" + reload); - if (reload) { reloaded = active; - reload(ServiceSynchronize.this, -1L, false, "unmetered"); + reload(ServiceSynchronize.this, -1L, false, + "Connectivity changed " + network + " caps=" + caps); } lastActiveCaps = caps; @@ -1810,13 +1807,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences boolean reload = (!active.equals(reloaded) && (ahas4 && !lhas4) || (ahas6 && !lhas6)); - if (reload || BuildConfig.DEBUG) - EntityLog.log(ServiceSynchronize.this, "Connectivity changed " + network + - " props=" + props + " reload=" + reload); - if (reload) { reloaded = active; - reload(ServiceSynchronize.this, -1L, false, "connectivity"); + reload(ServiceSynchronize.this, -1L, false, + "Connectivity changed " + network + " props=" + props); } lastActiveProps = props;