Fix debug log for no matching acceptableTypes

This commit is contained in:
GatinMI 2022-02-28 23:29:28 +03:00 committed by Brian Clozel
parent 17f7a24118
commit b158110801
1 changed files with 3 additions and 3 deletions

View File

@ -242,12 +242,12 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
}
}
if (mediaTypesToUse.isEmpty()) {
if (body != null) {
throw new HttpMediaTypeNotAcceptableException(producibleTypes);
}
if (logger.isDebugEnabled()) {
logger.debug("No match for " + acceptableTypes + ", supported: " + producibleTypes);
}
if (body != null) {
throw new HttpMediaTypeNotAcceptableException(producibleTypes);
}
return;
}