[KEYCLOAK-5824] - Fixing logging of error mesages
This commit is contained in:
parent
6731c55429
commit
b0ccce397a
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ public class AuthorizationTokenService {
|
|||
.exposedHeaders(Cors.ACCESS_CONTROL_ALLOW_METHODS).build();
|
||||
}
|
||||
} catch (Exception cause) {
|
||||
logger.error(cause);
|
||||
logger.error("Failed to evaluate permissions", cause);
|
||||
throw new ErrorResponseException(OAuthErrorException.SERVER_ERROR, "Error while evaluating permissions.", Status.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ public class EntitlementService {
|
|||
return Cors.add(request, Response.ok().entity(new EntitlementResponse(createRequestingPartyToken(entitlements, identity.getAccessToken(), resourceServer)))).allowedOrigins(identity.getAccessToken()).allowedMethods("GET").exposedHeaders(Cors.ACCESS_CONTROL_ALLOW_METHODS).build();
|
||||
}
|
||||
} catch (Exception cause) {
|
||||
logger.error(cause);
|
||||
logger.error("Failed to evaluate permissions", cause);
|
||||
throw new ErrorResponseException(OAuthErrorException.SERVER_ERROR, "Error while evaluating permissions.", Status.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue