added minor response trace logging

This commit is contained in:
Brian Long 2022-02-02 13:33:09 -05:00
parent aea7a0d035
commit 6fd42a8daf

View File

@ -45,6 +45,8 @@ public class LoggingFilter implements ClientRequestFilter, ClientResponseFilter
@Override
public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
if (this.loggerResponse.isTraceEnabled()) {
this.loggerResponse.trace("response: {} ", this.om.writeValueAsString(responseContext.getStatus()));
// WARN body is stream, which would need to be replaced after read
this.loggerResponse.warn("response: NOT YET SUPPORTED");
}
}