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)