Add logging to the test server

This commit is contained in:
jamesagnew 2021-05-28 11:23:57 -04:00
parent 1703568840
commit 9aaf5ec5d8
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}