From bfcdf4127662f9be8e1a261a1932b5a42caaad32 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 13 Mar 2006 06:14:27 +0000 Subject: [PATCH] tiny fix to avoid duplicate code --- fail2ban.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fail2ban.py b/fail2ban.py index 321aedd5..52ae965a 100755 --- a/fail2ban.py +++ b/fail2ban.py @@ -346,16 +346,6 @@ def main(): elif conf["verbose"] > 1: logSys.setLevel(logging.DEBUG) - # Set debug log level - if conf["debug"]: - logSys.setLevel(logging.DEBUG) - formatterstring = ('%(levelname)s: [%(filename)s (%(lineno)d)] ' + - '%(message)s') - formatter = logging.Formatter("%(asctime)s " + formatterstring) - stdout.setFormatter(formatter) - logSys.warn("DEBUG MODE: FIREWALL COMMANDS ARE _NOT_ EXECUTED BUT " + - "ONLY DISPLAYED IN THE LOG MESSAGES") - # Set debug log level if conf["debug"]: logSys.setLevel(logging.DEBUG)