Перенос служебных методов настроек

This commit is contained in:
2026-07-19 20:56:29 +03:00
parent 9939aa5799
commit a25b34ab3f

View File

@@ -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