mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: log error only if there were missed config files that couldn't be read
This commit is contained in:
parent
2403f395e9
commit
98aa0e23eb
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ class ConfigReader(SafeConfigParserWithIncludes):
|
|||
logSys.debug("Reading config files: " + ', '.join(config_files))
|
||||
config_files_read = SafeConfigParserWithIncludes.read(self, config_files)
|
||||
missed = [ cf for cf in config_files if cf not in config_files_read ]
|
||||
logSys.error("Error reading files: " + ', '.join(missed))
|
||||
if missed:
|
||||
logSys.error("Could not read config files: " + ', '.join(missed))
|
||||
if config_files_read:
|
||||
return True
|
||||
logSys.error("Found no accessible config files for %r under %s" %
|
||||
|
|
|
|||
Loading…
Reference in a new issue