From 7e4bcd1c57ae0617a649df657044f231b8e35474 Mon Sep 17 00:00:00 2001 From: Osiris Team Date: Tue, 12 Sep 2023 18:29:54 +0200 Subject: [PATCH] fixed config values not getting log to file --- .../osiris/autoplug/client/utils/UtilsConfig.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/osiris/autoplug/client/utils/UtilsConfig.java b/src/main/java/com/osiris/autoplug/client/utils/UtilsConfig.java index 71c558a7..6a57a953 100644 --- a/src/main/java/com/osiris/autoplug/client/utils/UtilsConfig.java +++ b/src/main/java/com/osiris/autoplug/client/utils/UtilsConfig.java @@ -78,15 +78,13 @@ public void checkForDeprecatedSections(Yaml yaml) throws YamlWriterException, IO public void printAllModulesToDebugExceptServerKey(@NotNull List 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);