Перенос служебных методов настроек
This commit is contained in:
@@ -16,7 +16,9 @@ class CustomLoggerDebugFilter:
|
||||
Фильтр для разделения журнала DEBUG
|
||||
"""
|
||||
|
||||
# noinspection PyMethodMayBeStatic
|
||||
DEBUG_LEVEL = 'DEBUG'
|
||||
""" Признак уровня отладки """
|
||||
|
||||
def filter(self, record)->bool:
|
||||
"""
|
||||
Фильтрация
|
||||
@@ -25,4 +27,4 @@ class CustomLoggerDebugFilter:
|
||||
"""
|
||||
|
||||
is_debug = SettingUtils.is_debug_mode()
|
||||
return is_debug and record.levelname.upper() == 'DEBUG'
|
||||
return is_debug and record.levelname == self.DEBUG_LEVEL
|
||||
|
||||
Reference in New Issue
Block a user