From 897018932b8c6363fd3cef2343a4079e30ee5ea7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 29 Sep 2005 15:41:02 +0000 Subject: [PATCH] added reporting of the enabled sections: unified it a bit with the rest --- fail2ban.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fail2ban.py b/fail2ban.py index f00f9f52..b13ffdab 100755 --- a/fail2ban.py +++ b/fail2ban.py @@ -354,13 +354,13 @@ def main(): logSys.info("Fail2Ban v" + version + " is running") - enabledSections = "" + enabledSections = [] # Gets the options of each sections for t in confReader.getSections(): l = confReader.getLogOptions(t, optionValues) if l["enabled"]: # Creates a logreader object - enabledSections += " %s"%t + enabledSections.append(t) lObj = LogReader(l["logfile"], l["timeregex"], l["timepattern"], l["failregex"], l["maxfailures"], l["findtime"]) # Creates a firewall object @@ -369,7 +369,7 @@ def main(): # with this :/ logFwList.append([t, lObj, fObj, dict(), l]) - logSys.info("Sections [%s] are enabled"%t) + logSys.info("Sections %s are enabled"%enabledSections) # We add 127.0.0.1 to the ignore list has we do not want # to be ban ourself.