From dab730ff3510964e359ffa980638446e5a3422df Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 27 Feb 2012 19:13:25 -0800 Subject: [PATCH] Only log first two characters of client key --- .../gauges/authenticator/GaugesAccountAuthenticator.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/github/mobile/gauges/authenticator/GaugesAccountAuthenticator.java b/app/src/main/java/com/github/mobile/gauges/authenticator/GaugesAccountAuthenticator.java index 4614abe..f9962e9 100644 --- a/app/src/main/java/com/github/mobile/gauges/authenticator/GaugesAccountAuthenticator.java +++ b/app/src/main/java/com/github/mobile/gauges/authenticator/GaugesAccountAuthenticator.java @@ -63,8 +63,6 @@ public Bundle addAccount(AccountAuthenticatorResponse response, String accountTy final Bundle bundle = new Bundle(); bundle.putParcelable(AccountManager.KEY_INTENT, intent); return bundle; - // Log.d(AccountAuthenticatorService.TAG, "addAccount " + accountType + - // " authTokenType=" + authTokenType); } @Override @@ -92,7 +90,7 @@ public Bundle getAuthToken(AccountAuthenticatorResponse response, Account accoun throw new NetworkErrorException(e); } String apiKey = client.getKey(); - Log.d(TAG, "getAuthToken() called : apiKey=" + apiKey); + Log.d(TAG, "getAuthToken() called : apiKey=" + (apiKey == null ? null : apiKey.substring(0, 2) + "…")); Bundle bundle = new Bundle(); bundle.putString(KEY_ACCOUNT_NAME, account.name); bundle.putString(KEY_ACCOUNT_TYPE, GAUGES_ACCOUNT_TYPE); @@ -102,9 +100,8 @@ public Bundle getAuthToken(AccountAuthenticatorResponse response, Account accoun @Override public String getAuthTokenLabel(String authTokenType) { - if (authTokenType.equals(AuthConstants.AUTHTOKEN_TYPE)) { + if (authTokenType.equals(AuthConstants.AUTHTOKEN_TYPE)) return authTokenType; - } return null; }