Reduced logging

This commit is contained in:
M66B 2022-08-28 08:36:52 +02:00
parent d034845aec
commit 59182fb014
2 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,8 @@ public class GmailState {
acquired = new Date().getTime();
} else if (needsRefresh) {
EntityLog.log(context, logType, "Token refresh failed user=" + id + ":" + user);
Log.e("Token refresh failed id=" + id);
if (!BuildConfig.PLAY_STORE_RELEASE)
Log.e("Token refresh failed id=" + id);
}
if (token == null)

View File

@ -193,7 +193,8 @@ public class ServiceAuthenticator extends Authenticator {
Log.i("OAuth refreshed user=" + id + ":" + user);
if (holder.error != null) {
Log.e(new Throwable("Token refresh failed id=" + id, holder.error));
if (!BuildConfig.PLAY_STORE_RELEASE)
Log.e(new Throwable("Token refresh failed id=" + id, holder.error));
throw holder.error;
}
} catch (Exception ex) {