Add logging to the test server
This commit is contained in:
parent
1703568840
commit
9aaf5ec5d8
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue