Removed sensitive info from reports.

This commit is contained in:
Wizjany 2014-06-17 23:24:13 -04:00
parent 22f45c45ee
commit c66adf0119

View File

@ -122,9 +122,15 @@ private void appendGlobalConfiguration(ConfigurationManager config) {
Class<? extends ConfigurationManager> cls = config.getClass();
for (Field field : cls.getFields()) {
try {
if (field.getName().equalsIgnoreCase("CONFIG_HEADER")) continue;
String name = field.getName();
// store these elsewhere maybe?
if (name.equals("CONFIG_HEADER")
|| name.equals("hostKeys")
|| name.equals("sqlPassword")) {
continue;
}
Object val = field.get(config);
configLog.put(field.getName(), val);
configLog.put(name, val);
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException ignore) {