Commit ddf14086 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #7995 from vpavic:improve-logging

* pr/7995:
  Improve `UserInfoTokenServices` logging
parents 89e3335c 8f6a0e96
......@@ -123,7 +123,7 @@ public class UserInfoTokenServices implements ResourceServerTokenServices {
@SuppressWarnings({ "unchecked" })
private Map<String, Object> getMap(String path, String accessToken) {
this.logger.info("Getting user info from: " + path);
this.logger.debug("Getting user info from: " + path);
try {
OAuth2RestOperations restTemplate = this.restTemplate;
if (restTemplate == null) {
......@@ -142,7 +142,7 @@ public class UserInfoTokenServices implements ResourceServerTokenServices {
return restTemplate.getForEntity(path, Map.class).getBody();
}
catch (Exception ex) {
this.logger.info("Could not fetch user details: " + ex.getClass() + ", "
this.logger.warn("Could not fetch user details: " + ex.getClass() + ", "
+ ex.getMessage());
return Collections.<String, Object>singletonMap("error",
"Could not fetch user details");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment