kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gwens...@apache.org
Subject kafka git commit: KAFKA-4056: Kafka logs values of sensitive configs like passwords
Date Fri, 19 Aug 2016 18:30:03 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 104d2154b -> 880bde5ac


KAFKA-4056: Kafka logs values of sensitive configs like passwords

In case of unknown configs, only list the name without the value

Author: Mickael Maison <mickael.maison@gmail.com>

Reviewers: Jaikiran, Gwen Shapira, Grant Henke, Ryan Pridgeon, Dustin Cote

Closes #1759 from mimaison/KAFKA-4056


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/880bde5a
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/880bde5a
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/880bde5a

Branch: refs/heads/trunk
Commit: 880bde5ac5644c904eacc1c4a53159a58d107254
Parents: 104d215
Author: Mickael Maison <mickael.maison@gmail.com>
Authored: Fri Aug 19 11:29:54 2016 -0700
Committer: Gwen Shapira <cshapi@gmail.com>
Committed: Fri Aug 19 11:29:54 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/kafka/common/config/AbstractConfig.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/880bde5a/clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java
----------------------------------------------------------------------
diff --git a/clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java b/clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java
index 91c5a9f..9f3cba4 100644
--- a/clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java
+++ b/clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java
@@ -185,7 +185,7 @@ public class AbstractConfig {
      */
     public void logUnused() {
         for (String key : unused())
-            log.warn("The configuration {} = {} was supplied but isn't a known config.",
key, this.originals.get(key));
+            log.warn("The configuration '{}' was supplied but isn't a known config.", key);
     }
 
     /**


Mime
View raw message