Skip to content

Commit

Permalink
Added log statement for client exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitic committed Apr 13, 2022
1 parent 25cbd93 commit 10bc682
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public void apply(ClientResource clientResource) {
if (e instanceof WebApplicationException) {
var response = WebApplicationException.class.cast(e).getResponse();
error = "Keycloak returned " + response.getStatus() + " with: " + response.readEntity(String.class);
} else {
log.error("RuntimeException: " + e);
}
log.error(keycloak + "/" + realm + "/" + clientId + ": " + error);
updateStatus(clientResource, error);
Expand Down

0 comments on commit 10bc682

Please sign in to comment.