accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1397176 - /accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/Accumulo.java
Date Thu, 11 Oct 2012 17:16:17 GMT
Author: ecn
Date: Thu Oct 11 17:16:17 2012
New Revision: 1397176

URL: http://svn.apache.org/viewvc?rev=1397176&view=rev
Log:
ACCUMULO-800 do not log the instance secret

Modified:
    accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/Accumulo.java

Modified: accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/Accumulo.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/Accumulo.java?rev=1397176&r1=1397175&r2=1397176&view=diff
==============================================================================
--- accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/Accumulo.java
(original)
+++ accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/Accumulo.java
Thu Oct 11 17:16:17 2012
@@ -144,7 +144,7 @@ public class Accumulo {
       sortedProps.put(entry.getKey(), entry.getValue());
     
     for (Entry<String,String> entry : sortedProps.entrySet()) {
-      if (entry.getKey().toLowerCase().contains("password"))
+      if (entry.getKey().toLowerCase().contains("password") || entry.getKey().toLowerCase().contains("secret"))
         log.info(entry.getKey() + " = <hidden>");
       else
         log.info(entry.getKey() + " = " + entry.getValue());



Mime
View raw message