mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Improved logging
This commit is contained in:
@@ -81,7 +81,10 @@ public class GmailState {
|
||||
EntityLog.log(context, EntityLog.Type.Debug, "Token needs refresh" +
|
||||
" user=" + id + ":" + user + " ago=" + (ago / 60 / 1000L) + " min");
|
||||
if (ago < ServiceAuthenticator.MIN_FORCE_REFRESH_INTERVAL) {
|
||||
Log.e("Blocked token refresh id=" + id + " ago=" + (ago / 1000L) + " s");
|
||||
Log.e("Blocked token refresh id=" + id +
|
||||
" ago=" + (ago / 1000L) + " s" +
|
||||
" force=" + forceRefresh +
|
||||
" exp=" + (expiration == null ? null : new Date(expiration)));
|
||||
return;
|
||||
}
|
||||
prefs.edit().putLong(key, now).apply();
|
||||
|
||||
@@ -178,7 +178,10 @@ public class ServiceAuthenticator extends Authenticator {
|
||||
EntityLog.log(context, EntityLog.Type.Debug, "Token needs refresh" +
|
||||
" user=" + id + ":" + user + " ago=" + (ago / 60 / 1000L) + " min");
|
||||
if (ago < ServiceAuthenticator.MIN_FORCE_REFRESH_INTERVAL) {
|
||||
Log.e("Blocked token refresh id=" + id + " ago=" + (ago / 1000L) + " s");
|
||||
Log.e("Blocked token refresh id=" + id +
|
||||
" ago=" + (ago / 1000L) + " s" +
|
||||
" force=" + forceRefresh +
|
||||
" exp=" + (expiration == null ? null : new Date(expiration)));
|
||||
return;
|
||||
}
|
||||
prefs.edit().putLong(key, now).apply();
|
||||
|
||||
Reference in New Issue
Block a user