Improved logging

pull/210/head
M66B 2 years ago
parent e384f0ac2e
commit a8d60bca60

@ -212,9 +212,10 @@ public class ServiceAuthenticator extends Authenticator {
Log.i("OAuth refreshed user=" + id + ":" + user); Log.i("OAuth refreshed user=" + id + ":" + user);
if (holder.error != null) { if (holder.error != null) {
Throwable cause = holder.error.getCause(); Log.e(new Throwable("Token refresh failed" +
String msg = (cause == null ? null : cause.getMessage()); " id=" + id +
Log.e(new Throwable("Token refresh failed id=" + id + " error=" + msg, holder.error)); " error=" + holder.error.getMessage(),
holder.error));
throw holder.error; throw holder.error;
} }
} catch (Exception ex) { } catch (Exception ex) {

Loading…
Cancel
Save