Skip to content

Commit

Permalink
fixed config values not getting log to file
Browse files Browse the repository at this point in the history
  • Loading branch information
Osiris-Team committed Sep 12, 2023
1 parent 0b15ac9 commit 7e4bcd1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main/java/com/osiris/autoplug/client/utils/UtilsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ public void checkForDeprecatedSections(Yaml yaml) throws YamlWriterException, IO
public void printAllModulesToDebugExceptServerKey(@NotNull List<YamlSection> modules, String serverKey) {
try {
UtilsYamlSection utils = new UtilsYamlSection();
for (YamlSection module :
for (YamlSection sec :
modules) {
if (module.asString() != null) {
if (module.getKeys().equals(ymlServerKeys) || module.getKeys().equals(ymlSteamLogin)) {
AL.debug(this.getClass(), module.getKeys().toString() + " VAL: NOT SHOWN DUE TO SECURITY RISK DEF: " + utils.valuesListToStringList(module.getDefValues()).toString());
}
} else {
AL.debug(this.getClass(), module.getKeys().toString() + " VAL: " + utils.valuesListToStringList(module.getValues()).toString() + " DEF: " + utils.valuesListToStringList(module.getDefValues()).toString());
}
if (sec.asString() != null &&
(sec.getKeys().equals(ymlServerKeys) || sec.getKeys().equals(ymlSteamLogin)))
AL.debug(this.getClass(), sec.getKeys().toString() + " VAL: NOT SHOWN DUE TO SECURITY RISK DEF: " + utils.valuesListToStringList(sec.getDefValues()).toString());
else
AL.debug(this.getClass(), sec.getKeys().toString() + " VAL: " + utils.valuesListToStringList(sec.getValues()).toString() + " DEF: " + utils.valuesListToStringList(sec.getDefValues()).toString());
}
} catch (Exception e) {
AL.warn("Couldn't show/write ConfigModule information!", e);
Expand Down

0 comments on commit 7e4bcd1

Please sign in to comment.