Improved logging

pull/194/head
M66B 4 years ago
parent 460592ffff
commit 8a6e10452c

@ -135,7 +135,7 @@ public class ServiceAuthenticator extends Authenticator {
ErrorHolder holder = new ErrorHolder(); ErrorHolder holder = new ErrorHolder();
Semaphore semaphore = new Semaphore(0); Semaphore semaphore = new Semaphore(0);
Log.i("OAuth refresh"); Log.i("OAuth refresh id=" + id);
AuthorizationService authService = new AuthorizationService(context); AuthorizationService authService = new AuthorizationService(context);
authState.performActionWithFreshTokens( authState.performActionWithFreshTokens(
authService, authService,
@ -150,12 +150,12 @@ public class ServiceAuthenticator extends Authenticator {
}); });
semaphore.acquire(); semaphore.acquire();
Log.i("OAuth refreshed"); Log.i("OAuth refreshed id=" + id);
if (holder.error != null) if (holder.error != null)
throw holder.error; throw holder.error;
} catch (Exception ex) { } catch (Exception ex) {
throw new MessagingException("OAuth refresh", ex); throw new MessagingException("OAuth refresh id=" + id, ex);
} }
} }

Loading…
Cancel
Save