Add logging to the test server
@@ -278,7 +278,7 @@ public class TestRestfulServer extends RestfulServer {
// Logging for request type
LoggingInterceptor loggingInterceptor = new LoggingInterceptor();
- loggingInterceptor.setMessageFormat("ContentType / Accept for ${operationType}: ${requestHeader.content-type} / ${requestHeader.accept}");
+ loggingInterceptor.setMessageFormat("${operationType} Content-Type: ${requestHeader.content-type} - Accept: ${responseEncodingNoDefault} \"${requestHeader.accept}\" - Agent: ${requestHeader.user-agent}");
registerInterceptor(loggingInterceptor);
}
