mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
fixes log format by starting server with --loglevel=debug without specifying of verbosity level
This commit is contained in:
parent
98f87a1a52
commit
1ef367e77a
1 changed files with 1 additions and 0 deletions
|
|
@ -599,6 +599,7 @@ class Server:
|
|||
if logger.getEffectiveLevel() <= logging.DEBUG: # pragma: no cover
|
||||
if self.__verbose is None:
|
||||
self.__verbose = logging.DEBUG - logger.getEffectiveLevel() + 1
|
||||
if self.__verbose is not None and self.__verbose > 2: # pragma: no cover
|
||||
fmt = getVerbosityFormat(self.__verbose-1)
|
||||
# tell the handler to use this format
|
||||
hdlr.setFormatter(logging.Formatter(fmt))
|
||||
|
|
|
|||
Loading…
Reference in a new issue