BF: Keep sure database errors are captured during Fail2Ban startup

pull/616/head
Steven Hiscocks 2014-02-13 20:07:12 +00:00
parent c701ac9276
commit 9bbf4ea258
1 changed files with 2 additions and 1 deletions

View File

@ -62,5 +62,6 @@ class Fail2banReader(ConfigReader):
stream.append(["set", "dbfile", self.__opts[opt]])
elif opt == "dbpurgeage":
stream.append(["set", "dbpurgeage", self.__opts[opt]])
return stream
# Ensure logtarget/level set first so any db errors are captured
return sorted(stream, reverse=True)