|
|
@ -122,7 +122,7 @@ if verbosity > 1: # pragma: no cover |
|
|
|
if verbosity > 3: |
|
|
|
if verbosity > 3: |
|
|
|
fmt = ' | %(module)15.15s-%(levelno)-2d: %(funcName)-20.20s |' + fmt |
|
|
|
fmt = ' | %(module)15.15s-%(levelno)-2d: %(funcName)-20.20s |' + fmt |
|
|
|
if verbosity > 2: |
|
|
|
if verbosity > 2: |
|
|
|
fmt = ' +%(relativeCreated)5d %(thread)X %(levelname)-5.5s' + fmt |
|
|
|
fmt = ' +%(relativeCreated)5d %(thread)X %(levelname)-5.5s' + fmt |
|
|
|
else: |
|
|
|
else: |
|
|
|
fmt = ' %(asctime)-15s %(thread)X %(levelname)-5.5s' + fmt |
|
|
|
fmt = ' %(asctime)-15s %(thread)X %(levelname)-5.5s' + fmt |
|
|
|
# |
|
|
|
# |
|
|
@ -134,7 +134,7 @@ logSys.addHandler(stdout) |
|
|
|
# |
|
|
|
# |
|
|
|
if not opts.log_level or opts.log_level != 'critical': # pragma: no cover |
|
|
|
if not opts.log_level or opts.log_level != 'critical': # pragma: no cover |
|
|
|
print("Fail2ban %s test suite. Python %s. Please wait..." \ |
|
|
|
print("Fail2ban %s test suite. Python %s. Please wait..." \ |
|
|
|
% (version, str(sys.version).replace('\n', ''))) |
|
|
|
% (version, str(sys.version).replace('\n', ''))) |
|
|
|
|
|
|
|
|
|
|
|
tests = gatherTests(regexps, opts) |
|
|
|
tests = gatherTests(regexps, opts) |
|
|
|
# |
|
|
|
# |
|
|
|