mirror of https://github.com/fail2ban/fail2ban
possibility to increase verbosity up to heavy debug (partial ported from 716-cs)
parent
db2dd070ad
commit
9d7e860edb
|
@ -376,8 +376,10 @@ class Fail2banClient:
|
||||||
logSys.setLevel(logging.WARNING)
|
logSys.setLevel(logging.WARNING)
|
||||||
elif verbose == 2:
|
elif verbose == 2:
|
||||||
logSys.setLevel(logging.INFO)
|
logSys.setLevel(logging.INFO)
|
||||||
else:
|
elif verbose == 3:
|
||||||
logSys.setLevel(logging.DEBUG)
|
logSys.setLevel(logging.DEBUG)
|
||||||
|
else:
|
||||||
|
logSys.setLevel(logging.HEAVYDEBUG)
|
||||||
# Add the default logging handler to dump to stderr
|
# Add the default logging handler to dump to stderr
|
||||||
logout = logging.StreamHandler(sys.stderr)
|
logout = logging.StreamHandler(sys.stderr)
|
||||||
# set a format which is simpler for console use
|
# set a format which is simpler for console use
|
||||||
|
|
Loading…
Reference in New Issue