log: Fix lepl filter with debug logging.
This commit is contained in:
parent
36511ecdb9
commit
d7f9ccf7e5
@ -103,7 +103,7 @@ def init_log(args):
|
|||||||
console, ram = _init_handlers(numeric_level, args.color, args.loglines)
|
console, ram = _init_handlers(numeric_level, args.color, args.loglines)
|
||||||
root = getLogger()
|
root = getLogger()
|
||||||
if console is not None:
|
if console is not None:
|
||||||
if args.logfilter is not None and numeric_level <= logging.DEBUG:
|
if args.logfilter is not None and numeric_level < logging.DEBUG:
|
||||||
console.addFilter(LogFilter(args.logfilter.split(',')))
|
console.addFilter(LogFilter(args.logfilter.split(',')))
|
||||||
console.addFilter(LeplFilter())
|
console.addFilter(LeplFilter())
|
||||||
root.addHandler(console)
|
root.addHandler(console)
|
||||||
|
Loading…
Reference in New Issue
Block a user