BF: fail2ban.conf reader expected "int" type for `loglevel`

Closes #657
pull/663/head
Steven Hiscocks 2014-03-19 19:09:07 +00:00
parent deb59240eb
commit 1470e3c01d
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ ver. 0.9.1 (2014/xx/xx) - better, faster, stronger
* badips.py action error when logging HTTP error raised with badips request * badips.py action error when logging HTTP error raised with badips request
* fail2ban-regex failed to work in python3 due to space/tab mix * fail2ban-regex failed to work in python3 due to space/tab mix
* journalmatch for recidive incorrect PRIORITY * journalmatch for recidive incorrect PRIORITY
* loglevel couldn't be changed in fail2ban.conf
- New features: - New features:

View File

@ -45,7 +45,7 @@ class Fail2banReader(ConfigReader):
return ConfigReader.getOptions(self, "Definition", opts) return ConfigReader.getOptions(self, "Definition", opts)
def getOptions(self): def getOptions(self):
opts = [["int", "loglevel", "INFO" ], opts = [["string", "loglevel", "INFO" ],
["string", "logtarget", "STDERR"], ["string", "logtarget", "STDERR"],
["string", "dbfile", "/var/lib/fail2ban/fail2ban.sqlite3"], ["string", "dbfile", "/var/lib/fail2ban/fail2ban.sqlite3"],
["int", "dbpurgeage", 86400]] ["int", "dbpurgeage", 86400]]