Improved logging

This commit is contained in:
M66B 2022-08-15 09:57:35 +02:00
parent 00e63483f3
commit 33f76acd09
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public class GmailState {
Log.e("Blocked token refresh id=" + id +
" ago=" + (ago / 1000L) + " s" +
" force=" + forceRefresh +
" exp=" + (expiration == null ? null : new Date(expiration)));
" exp=" + (expiration == null ? -1 : (expiration - now) / 1000L) + " s");
return;
}
prefs.edit().putLong(key, now).apply();

View File

@ -181,7 +181,7 @@ public class ServiceAuthenticator extends Authenticator {
Log.e("Blocked token refresh id=" + id +
" ago=" + (ago / 1000L) + " s" +
" force=" + forceRefresh +
" exp=" + (expiration == null ? null : new Date(expiration)));
" exp=" + (expiration == null ? -1 : (expiration - now) / 1000L) + " s");
return;
}
prefs.edit().putLong(key, now).apply();