mirror of https://github.com/fail2ban/fail2ban
BF: full traceback on fail2ban-testcases needs to set formatter
parent
911eb45557
commit
13a12589a3
|
@ -108,7 +108,7 @@ stdout = logging.StreamHandler(sys.stdout)
|
|||
|
||||
fmt = ' %(message)s'
|
||||
|
||||
if opts.log_traceback:
|
||||
if opts.log_traceback or opts.full_traceback:
|
||||
Formatter = FormatterWithTraceBack
|
||||
fmt = (opts.full_traceback and ' %(tb)s' or ' %(tbc)s') + fmt
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue