Stop logging of exception stack trace as warning
@@ -158,7 +158,8 @@ public class MultiTenantRpcAuthorizer implements RpcAuthorizer {
private void handleAuthorizationFailure(Request request, Throwable throwable) {
String errorMessage = String.format("For request '%s' from '%s': %s", request.methodName(), request.target().toString(), throwable.getMessage());
- log.log(LogLevel.WARNING, errorMessage, throwable);
+ log.log(LogLevel.WARNING, errorMessage);
+ log.log(LogLevel.DEBUG, throwable, throwable::getMessage);
if (mode == Mode.ENFORCE) {
JrtErrorCode error = throwable instanceof AuthorizationException ? JrtErrorCode.UNAUTHORIZED : JrtErrorCode.AUTHORIZATION_FAILED;
request.setError(error.code, errorMessage);
