The validation for unknown messages takes potential config subsections into account now.
parent
f9c565b110
commit
0d07847990
|
@ -430,7 +430,7 @@ public class Messages extends Config {
|
|||
|
||||
// Check for unexpected (possibly no longer existing) message keys:
|
||||
Set<String> messageKeys = this.getSettings().stream().map(this::getConfigKey).collect(Collectors.toSet());
|
||||
Set<String> configKeys = config.getKeys(false);
|
||||
Set<String> configKeys = config.getKeys(true);
|
||||
for (String configKey : configKeys) {
|
||||
if (!messageKeys.contains(configKey)) {
|
||||
Log.warning(this.getLogPrefix() + "Unknown message: " + configKey);
|
||||
|
|
Loading…
Reference in New Issue