[oauthclient] Reduce log level to debug for token refresh (#1332)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
Mark Hilbush 2020-01-17 16:44:38 -05:00 committed by Christoph Weitkamp
parent 08da8de5cf
commit 8121fec350

View File

@ -307,7 +307,7 @@ public class OAuthConnector {
if (statusCode == HttpStatus.OK_200) {
AccessTokenResponse jsonResponse = gson.fromJson(content, AccessTokenResponse.class);
jsonResponse.setCreatedOn(LocalDateTime.now()); // this is not supplied by the response
logger.info("grant type {} to URL {} success", grantType, request.getURI());
logger.debug("grant type {} to URL {} success", grantType, request.getURI());
return jsonResponse;
} else if (statusCode == HttpStatus.BAD_REQUEST_400) {
OAuthResponseException errorResponse = gson.fromJson(content, OAuthResponseException.class);