Skip to content

Commit

Permalink
added some more log messages in MicrosoftAuthFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Jan 5, 2021
1 parent febfeb6 commit 7922b42
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,14 @@ public Authentication attemptAuthentication(HttpServletRequest request, HttpServ
if (token != null && token.containsKey("access_token")) {
userAuth = getOrCreateUser(app, (String) token.get("access_token"));
} else {
logger.warn("Authentication request failed - " + token);
logger.info("Authentication request failed with status '" +
resp1.getStatusLine().getReasonPhrase() + "' - " + token);
}
EntityUtils.consumeQuietly(resp1.getEntity());
} else {
logger.info("Authentication request failed with status '" +
(resp1 != null ? resp1.getStatusLine().getReasonPhrase() : "null") +
"' and empty response body.");
}
}
}
Expand Down

0 comments on commit 7922b42

Please sign in to comment.