Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 54652200C24 for ; Thu, 23 Feb 2017 17:16:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 52F49160B50; Thu, 23 Feb 2017 16:16:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 66AD3160B64 for ; Thu, 23 Feb 2017 17:16:50 +0100 (CET) Received: (qmail 92224 invoked by uid 500); 23 Feb 2017 16:16:49 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 92023 invoked by uid 99); 23 Feb 2017 16:16:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2017 16:16:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id F31CE1A0483 for ; Thu, 23 Feb 2017 16:16:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Gn-yQbWu9XKo for ; Thu, 23 Feb 2017 16:16:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5D2A160E17 for ; Thu, 23 Feb 2017 16:16:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 06B7FE093B for ; Thu, 23 Feb 2017 16:16:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5C8A82413E for ; Thu, 23 Feb 2017 16:16:44 +0000 (UTC) Date: Thu, 23 Feb 2017 16:16:44 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CXF-7254) New LoggingFeature Sl4jEventSender does not log the request headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Feb 2017 16:16:51 -0000 [ https://issues.apache.org/jira/browse/CXF-7254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15880742#comment-15880742 ] Sergey Beryozkin edited comment on CXF-7254 at 2/23/17 4:16 PM: ---------------------------------------------------------------- Example, running a JAXRSClientServerBookTest.testGetBookQueryDefault produces {noformat} Feb 23, 2017 3:57:56 PM org.apache.cxf.ext.logging.slf4j.Slf4jEventSender send INFO: } {noformat} with the new feature - no information the request has even been made. With the old feature we can see: {noformat} Feb 23, 2017 4:05:00 PM org.apache.cxf.interceptor.LoggingInInterceptor INFO: Inbound Message ---------------------------- ID: 1 Address: http://localhost:9001/bookstore/books/query/default Http-Method: GET Content-Type: Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive], Content-Type=[null], Host=[localhost:9001], Pragma=[no-cache], User-Agent=[Apache-CXF/${project.version}]} -------------------------------------- {noformat} If we have a request with a payload (for JAXWS or JAXRS), in this case JAXRSClientServerBookTest.echoForm, we see the following with the new feature: {noformat} Feb 23, 2017 4:13:40 PM org.apache.cxf.ext.logging.slf4j.Slf4jEventSender send INFO: a=aValue&b=b+value&c%25=cValue {noformat} but with the old feature it is {noformat} Feb 23, 2017 4:07:34 PM org.apache.cxf.interceptor.LoggingInInterceptor INFO: Inbound Message ---------------------------- ID: 1 Address: http://localhost:9001/bookstore/form Encoding: ISO-8859-1 Http-Method: POST Content-Type: application/x-www-form-urlencoded Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive], Content-Length=[30], content-type=[application/x-www-form-urlencoded], Host=[localhost:9001], Pragma=[no-cache], User-Agent=[Apache-CXF/${project.version}]} Payload: a=aValue&b=b+value&c%25=cValue -------------------------------------- {noformat} The following information is immediately important: {noformat} Address: http://localhost:9001/bookstore/form Http-Method: POST Content-Type: application/x-www-form-urlencoded {noformat} It is also useful to see the headers and the payload shown as one 'piece' and the payload identified as "Payload:" as with the old feature. was (Author: sergey_beryozkin): Example, running a JAXRSClientServerBookTest.testGetBookQueryDefault produces {noformat} Feb 23, 2017 3:57:56 PM org.apache.cxf.ext.logging.slf4j.Slf4jEventSender send INFO: } with the new feature - no information the request has even been made. With the old feature we can see: {noformat} Feb 23, 2017 4:05:00 PM org.apache.cxf.interceptor.LoggingInInterceptor INFO: Inbound Message ---------------------------- ID: 1 Address: http://localhost:9001/bookstore/books/query/default Http-Method: GET Content-Type: Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive], Content-Type=[null], Host=[localhost:9001], Pragma=[no-cache], User-Agent=[Apache-CXF/${project.version}]} -------------------------------------- {noformat} If we have a request with a payload (for JAXWS or JAXRS), in this case JAXRSClientServerBookTest.echoForm, we see the following with the new feature: {noformat} Feb 23, 2017 4:13:40 PM org.apache.cxf.ext.logging.slf4j.Slf4jEventSender send INFO: a=aValue&b=b+value&c%25=cValue {noformat} but with the old feature it is {noformat} Feb 23, 2017 4:07:34 PM org.apache.cxf.interceptor.LoggingInInterceptor INFO: Inbound Message ---------------------------- ID: 1 Address: http://localhost:9001/bookstore/form Encoding: ISO-8859-1 Http-Method: POST Content-Type: application/x-www-form-urlencoded Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive], Content-Length=[30], content-type=[application/x-www-form-urlencoded], Host=[localhost:9001], Pragma=[no-cache], User-Agent=[Apache-CXF/${project.version}]} Payload: a=aValue&b=b+value&c%25=cValue -------------------------------------- {noformat} The following information is immediately important: {noformat} Address: http://localhost:9001/bookstore/form Http-Method: POST Content-Type: application/x-www-form-urlencoded {noformat} It is also useful to see the headers and the payload shown as one 'piece' and the payload identified as "Payload:" as with the old feature. > New LoggingFeature Sl4jEventSender does not log the request headers > ------------------------------------------------------------------- > > Key: CXF-7254 > URL: https://issues.apache.org/jira/browse/CXF-7254 > Project: CXF > Issue Type: Bug > Components: logging > Reporter: Sergey Beryozkin > Fix For: 3.2.0, 3.1.11 > > > No request/response properties are reported which, in case of the requests with the empty payloads, leads to no info reported at all, while for the requests with the payloads only the payload INFO is displayed -- This message was sent by Atlassian JIRA (v6.3.15#6346)