|
|
@ -52,7 +52,7 @@ def get_opt_parser(): |
|
|
|
p.add_options([ |
|
|
|
p.add_options([ |
|
|
|
Option('-l', "--log-level", type="choice", |
|
|
|
Option('-l', "--log-level", type="choice", |
|
|
|
dest="log_level", |
|
|
|
dest="log_level", |
|
|
|
choices=('debug', 'info', 'warn', 'error', 'fatal'), |
|
|
|
choices=('heavydebug', 'debug', 'info', 'warning', 'error', 'fatal'), |
|
|
|
default=None, |
|
|
|
default=None, |
|
|
|
help="Log level for the logger to use during running tests"), |
|
|
|
help="Log level for the logger to use during running tests"), |
|
|
|
Option('-n', "--no-network", action="store_true", |
|
|
|
Option('-n', "--no-network", action="store_true", |
|
|
@ -76,7 +76,8 @@ parser = get_opt_parser() |
|
|
|
logSys = logging.getLogger("fail2ban") |
|
|
|
logSys = logging.getLogger("fail2ban") |
|
|
|
|
|
|
|
|
|
|
|
# Numerical level of verbosity corresponding to a log "level" |
|
|
|
# Numerical level of verbosity corresponding to a log "level" |
|
|
|
verbosity = {'debug': 3, |
|
|
|
verbosity = {'heavydebug': 4, |
|
|
|
|
|
|
|
'debug': 3, |
|
|
|
'info': 2, |
|
|
|
'info': 2, |
|
|
|
'warn': 1, |
|
|
|
'warn': 1, |
|
|
|
'error': 1, |
|
|
|
'error': 1, |
|
|
|