Added back-off breadcrumb

This commit is contained in:
M66B
2022-08-16 08:06:07 +02:00
parent 86fdad00e8
commit a640d29b99

View File

@@ -2591,6 +2591,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
state.setBackoff(b);
}
Map<String, String> 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 {