Debug: log token/password

This commit is contained in:
M66B 2022-07-20 07:47:38 +02:00
parent 17f401340d
commit 69ac5821d5
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ public class ServiceAuthenticator extends Authenticator {
Log.e(ex); Log.e(ex);
} }
Log.i(user + " returning " + (auth == AUTH_TYPE_PASSWORD ? "password" : "token")); Log.i(user + " returning " +
(auth == AUTH_TYPE_PASSWORD ? "password" : "token") +
(BuildConfig.DEBUG ? "=" + token : ""));
return new PasswordAuthentication(user, token); return new PasswordAuthentication(user, token);
} }