Fix debug log for no matching acceptableTypes
This commit is contained in:
parent
17f7a24118
commit
b158110801
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue