Skip to content

Commit

Permalink
Only log first two characters of client key
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Feb 28, 2012
1 parent 867b086 commit dab730f
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down

0 comments on commit dab730f

Please sign in to comment.