Remove invalid properties from map on property load
In order to not have config file flooded with invalid and corrupted properties in case of file corruption, remove all these invalid properties from property map on configuration load. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -199,6 +199,7 @@ public class ConfigManager
|
||||
if (split.length != 2)
|
||||
{
|
||||
log.debug("Properties key malformed!: {}", groupAndKey);
|
||||
properties.remove(groupAndKey);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user