Source:
<code>private void refreshToken(final Activity activity, final AuthenticationRequest request, final RefreshItem refreshItem, final boolean useCache, final AuthenticationCallback<AuthenticationResult> externalCallback) { Logger.v(TAG, "Process refreshToken for " + request.getLogInfo()); Oauth2 oauthRequest = new Oauth2(request, mWebRequest); oauthRequest.refreshToken(refreshItem.mRefreshToken, new AuthenticationCallback<AuthenticationResult>() { @Override public void onSuccess(AuthenticationResult result) { if (useCache) { if (result == null || StringExtensions.IsNullOrBlank(result.getAccessToken())) { Logger.w( TAG, "Refresh token did not return accesstoken.", request.getLogInfo() + " CorrelationId:" + result.getCorrelationId() + " ErrorCode:" + result.getErrorCode() + " ErrorDescription:" + result.getErrorDescription(), <START> ADALError.AUTH_FAILED_NO_TOKEN); <END> removeItemFromCache(refreshItem); acquireTokenLocal(activity, request, externalCallback); } else { Logger.v( TAG, "Refresh token is finished. Request:" + request.getLogInfo()); Logger.v( TAG, "Cache is used. It will set item to cache" + request.getLogInfo()); setItemToCache(request, result); externalCallback.onSuccess(result); } } else { externalCallback.onSuccess(result); } } @Override public void onError(Exception exc) { Logger.e(TAG, "Error in refresh token for request:" + request.getLogInfo(), ExceptionExtensions.getExceptionMessage(exc), ADALError.AUTH_FAILED_NO_TOKEN, exc); if (useCache) { Logger.v(TAG, "Error in refresh token. Cache is used. It will remove item from cache" + request.getLogInfo()); removeItemFromCache(refreshItem); } externalCallback.onError(exc); } }); }</code><technical_language>This is a perfect log - data is for investigation. integrate of in request.getLogInfo? This correlation id logged. applies errors</technical_language>

Target:
private void refreshToken(final Activity activity, final AuthenticationRequest request, final RefreshItem refreshItem, final boolean useCache, final AuthenticationCallback<AuthenticationResult> externalCallback) { Logger.v(TAG, "Process refreshToken for " + request.getLogInfo()); Oauth2 oauthRequest = new Oauth2(request, mWebRequest); oauthRequest.refreshToken(refreshItem.mRefreshToken, new AuthenticationCallback<AuthenticationResult>() { @Override public void onSuccess(AuthenticationResult result) { if (useCache) { if (result == null || StringExtensions.IsNullOrBlank(result.getAccessToken())) { Logger.w( TAG, "Refresh token did not return accesstoken.", request.getLogInfo() + result.getErrorLogInfo(), ADALError.AUTH_FAILED_NO_TOKEN); removeItemFromCache(refreshItem); acquireTokenLocal(activity, request, externalCallback); } else { Logger.v( TAG, "Refresh token is finished. Request:" + request.getLogInfo()); Logger.v( TAG, "Cache is used. It will set item to cache" + request.getLogInfo()); setItemToCache(request, result); externalCallback.onSuccess(result); } } else { externalCallback.onSuccess(result); } } @Override public void onError(Exception exc) { Logger.e(TAG, "Error in refresh token for request:" + request.getLogInfo(), ExceptionExtensions.getExceptionMessage(exc), ADALError.AUTH_FAILED_NO_TOKEN, exc); if (useCache) { Logger.v(TAG, "Error in refresh token. Cache is used. It will remove item from cache" + request.getLogInfo()); removeItemFromCache(refreshItem); } externalCallback.onError(exc); } }); }