diff --git a/server/src/main/java/com/linecorp/centraldogma/server/internal/api/HttpApiExceptionHandler.java b/server/src/main/java/com/linecorp/centraldogma/server/internal/api/HttpApiExceptionHandler.java index f889ba46f7..5528e14f57 100644 --- a/server/src/main/java/com/linecorp/centraldogma/server/internal/api/HttpApiExceptionHandler.java +++ b/server/src/main/java/com/linecorp/centraldogma/server/internal/api/HttpApiExceptionHandler.java @@ -127,14 +127,17 @@ public HttpResponse onServiceException(ServiceRequestContext ctx, Throwable caus final BiFunction func = exceptionHandlers.get(peeledCause.getClass()); if (func != null) { + ctx.setShouldReportUnloggedExceptions(false); return func.apply(ctx, peeledCause); } if (peeledCause instanceof IllegalArgumentException) { + ctx.setShouldReportUnloggedExceptions(false); return newResponse(ctx, HttpStatus.BAD_REQUEST, peeledCause); } if (peeledCause instanceof RequestAlreadyTimedOutException) { + ctx.setShouldReportUnloggedExceptions(false); return newResponse(ctx, HttpStatus.SERVICE_UNAVAILABLE, peeledCause); }