mirror of https://github.com/M66B/FairEmail.git
Improved logging
This commit is contained in:
parent
ed93b3a432
commit
fccc0d215b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue