You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by as...@apache.org on 2020/07/08 16:36:21 UTC

[cxf] branch feature/CXF-8099_mask_sensitive_logging_elements updated: CXF-8099: added header masks to inbound interceptor

This is an automated email from the ASF dual-hosted git repository.

ashakirin pushed a commit to branch feature/CXF-8099_mask_sensitive_logging_elements
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/feature/CXF-8099_mask_sensitive_logging_elements by this push:
     new 1869eeb  CXF-8099: added header masks to inbound interceptor
1869eeb is described below

commit 1869eebce5088f8a4bebd447f6b932d53e302eff
Author: ashakirin <49...@users.noreply.github.com>
AuthorDate: Wed Jul 8 18:35:26 2020 +0200

    CXF-8099: added header masks to inbound interceptor
---
 .../src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
index 1d69c72..15e7f36 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
@@ -23,7 +23,6 @@ import java.io.PrintWriter;
 import java.nio.charset.StandardCharsets;
 import java.util.ArrayList;
 import java.util.Collection;
-import java.util.Collections;
 
 import org.apache.cxf.common.injection.NoJSR250Annotations;
 import org.apache.cxf.common.util.StringUtils;
@@ -67,7 +66,7 @@ public class LoggingInInterceptor extends AbstractLoggingInterceptor {
             return;
         }
         createExchangeId(message);
-        final LogEvent event = eventMapper.map(message, Collections.emptyMap());
+        final LogEvent event = eventMapper.map(message, sensitiveHeaderMap);
         if (shouldLogContent(event)) {
             addContent(message, event);
         } else {