mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-18 00:25:34 +01:00
Removed sensitive info from reports.
This commit is contained in:
parent
22f45c45ee
commit
c66adf0119
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user