From 8a6e10452cba984924e59d2c61ba01f90087e229 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 24 Feb 2021 08:59:04 +0100 Subject: [PATCH] Improved logging --- .../main/java/eu/faircode/email/ServiceAuthenticator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java b/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java index fdfffaca93..5efd7a5f3d 100644 --- a/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java +++ b/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java @@ -135,7 +135,7 @@ public class ServiceAuthenticator extends Authenticator { ErrorHolder holder = new ErrorHolder(); Semaphore semaphore = new Semaphore(0); - Log.i("OAuth refresh"); + Log.i("OAuth refresh id=" + id); AuthorizationService authService = new AuthorizationService(context); authState.performActionWithFreshTokens( authService, @@ -150,12 +150,12 @@ public class ServiceAuthenticator extends Authenticator { }); semaphore.acquire(); - Log.i("OAuth refreshed"); + Log.i("OAuth refreshed id=" + id); if (holder.error != null) throw holder.error; } catch (Exception ex) { - throw new MessagingException("OAuth refresh", ex); + throw new MessagingException("OAuth refresh id=" + id, ex); } }