From a640d29b99b98885e7002c01b6cf3972e2cd2c63 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 16 Aug 2022 08:06:07 +0200 Subject: [PATCH] Added back-off breadcrumb --- .../main/java/eu/faircode/email/ServiceSynchronize.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 8185fc8d69..ef2944e6d8 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -2591,6 +2591,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences state.setBackoff(b); } + Map crumb = new HashMap<>(); + crumb.put("account", account.name); + crumb.put("backoff", Integer.toString(backoff)); + crumb.put("recently", Integer.toString(recently)); + crumb.put("logarithmic", Boolean.toString(logarithmic_backoff)); + Log.breadcrumb("Backing off", crumb); + if (backoff <= CONNECT_BACKOFF_MAX) { // Short back-off period, keep device awake try {