cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mandy Warren (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5377) LoggingInInterceptor is not logging the URL for SOAP or REST non-HTTP requests
Date Sun, 17 Nov 2013 22:39:22 GMT

    [ https://issues.apache.org/jira/browse/CXF-5377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824979#comment-13824979
] 

Mandy Warren commented on CXF-5377:
-----------------------------------

Hi Sergey,

Sorry it has taken me a while to respond, I had a few problems with building the branch and
with my Maven dependencies (a bit of a learning curve for me!). I have built against the new
version and have rerun my tests. I have to say I see some quite strange behaviour when running
my integration tests which use local transport.. As you can see from the logs below, the first
test logs the request using the LoggingOutInterceptor (ID:1) and uses the ENDPOINT ADDRESS
rather than logging the URL of the Rest request. Before the response is logged, the second
test is run and here the LoggingInInterceptor logs the URL of the request (ID:2). I would
have expected the LoggingInInterceptor to log both and the LoggingOutInterceptor to log responses?

I am not overly worried about this as all works fine when running real requests through my
deployed service, perhaps the behaviour is just due to how I am running my tests? 


2013-11-17 22:17:17,355 [main] INFO  org.apache.cxf.interceptor.LoggingOutInterceptor [null]
[] [Outbound Message
---------------------------
ID: 1
Address: local://flsc
Http-Method: GET
Content-Type: application/xml
Headers: {Content-Type=[application/xml], Accept=[application/xml], client_applicationName=[testing]}
--------------------------------------]
2013-11-17 22:17:17,388 [main] INFO  org.apache.cxf.interceptor.LoggingInInterceptor [null]
[] [Inbound Message
----------------------------
ID: 2
Address: /v1/locations/xxx
Http-Method: GET
Content-Type: application/xml
Headers: {Content-Type=[application/xml], Accept=[application/xml], client_applicationName=[testing]}
--------------------------------------]


> LoggingInInterceptor is not logging the URL for SOAP or REST non-HTTP requests 
> -------------------------------------------------------------------------------
>
>                 Key: CXF-5377
>                 URL: https://issues.apache.org/jira/browse/CXF-5377
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 2.7.7
>         Environment: All
>            Reporter: Mandy Warren
>            Priority: Minor
>
> When you use local transport, the LoggingInInterceptor does not log the URL. Please see
the output below. 
> 21:13:05.837 [test-rs] [main] INFO  o.a.c.t.local.LocalTransportFactory - Creating destination
for address local://abcd
> 21:13:05.838 [test-rs] [main] INFO  org.apache.cxf.endpoint.ServerImpl - Setting the
server's publish address to be local://abcd
> 21:13:05.849 [test-rs] [main] INFO  o.a.c.i.LoggingInInterceptor - Inbound Message
> ----------------------------
> ID: 2
> Http-Method: GET
> Content-Type: application/json
> Headers: {Content-Type=[application/json], Accept=[application/json]}
> --------------------------------------
> The URL is logged for HTTP transport.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message