logging: Create a new level DEBUG_FILTERS
This is a cleaner approach that requires less configuration in other applications. This also easily allows us to have another color. Many checks were made on being exactly at the DEBUG level, they were fixed to also check on being below DEBUG (i.e. DEBUG_FILTERS).
This commit is contained in:
parent
822c1a3607
commit
7be9a6468b
12 changed files with 27 additions and 35 deletions
|
|
@ -223,7 +223,7 @@ class QtDo(QObject):
|
|||
elif isinstance(error, UserError):
|
||||
if not msg:
|
||||
msg = type(error).__name__
|
||||
elif logging.root.level == logging.DEBUG:
|
||||
elif logging.root.level <= logging.DEBUG:
|
||||
msg += u'<br />'
|
||||
ul_opened = False
|
||||
for line in backtrace.split('\n'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue