mirror of https://github.com/fail2ban/fail2ban
tiny fix to avoid duplicate code
parent
193a98c97a
commit
bfcdf41276
10
fail2ban.py
10
fail2ban.py
|
@ -346,16 +346,6 @@ def main():
|
||||||
elif conf["verbose"] > 1:
|
elif conf["verbose"] > 1:
|
||||||
logSys.setLevel(logging.DEBUG)
|
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
|
# Set debug log level
|
||||||
if conf["debug"]:
|
if conf["debug"]:
|
||||||
logSys.setLevel(logging.DEBUG)
|
logSys.setLevel(logging.DEBUG)
|
||||||
|
|
Loading…
Reference in New Issue