diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java index e6b3a0b7379e0..88bd9824402c5 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java @@ -54,6 +54,7 @@ public void handle(ResteasyReactiveRequestContext requestContext) throws Excepti try { effectiveRequestType = MediaType.valueOf((String) requestType); } catch (Exception e) { + log.debugv("Incorrect media type", e); throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).build()); } @@ -70,6 +71,7 @@ public void handle(ResteasyReactiveRequestContext requestContext) throws Excepti } List> readers = serialisers.findReaders(null, type, effectiveRequestType, RuntimeType.SERVER); if (readers.isEmpty()) { + log.debugv("No matching MessageBodyReader found for type {0} and media type {1}", type, effectiveRequestType); throw new NotSupportedException(); } for (MessageBodyReader reader : readers) { @@ -102,6 +104,7 @@ public void handle(ResteasyReactiveRequestContext requestContext) throws Excepti return; } } + log.debugv("No matching MessageBodyReader found for type {0} and media type {1}", type, effectiveRequestType); throw new NotSupportedException("No supported MessageBodyReader found"); }