[jboss-cvs] JBossAS SVN: r79321 - branches/Branch_4_2/system/src/main/org/jboss/system.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 9 21:18:12 EDT 2008
Author: mmoyses
Date: 2008-10-09 21:18:12 -0400 (Thu, 09 Oct 2008)
New Revision: 79321
Modified:
branches/Branch_4_2/system/src/main/org/jboss/system/ServiceConfigurator.java
Log:
JBAS-5978: masked passwords
Modified: branches/Branch_4_2/system/src/main/org/jboss/system/ServiceConfigurator.java
===================================================================
--- branches/Branch_4_2/system/src/main/org/jboss/system/ServiceConfigurator.java 2008-10-10 00:46:36 UTC (rev 79320)
+++ branches/Branch_4_2/system/src/main/org/jboss/system/ServiceConfigurator.java 2008-10-10 01:18:12 UTC (rev 79321)
@@ -328,7 +328,13 @@
else
value = parseTextSerialData(attr, cl, element, replace, trim);
- log.debug(attributeName + " set to " + value + " in " + objectName);
+ if (log.isDebugEnabled())
+ {
+ Object outputValue = value;
+ if (attributeName.toLowerCase().indexOf("password") != -1)
+ outputValue = "****";
+ log.debug(attributeName + " set to " + outputValue + " in " + objectName);
+ }
setAttribute(objectName, new Attribute(attributeName, value));
}//if has children
More information about the jboss-cvs-commits
mailing list