Log: Make the validate log level a static function

This commit is contained in:
Clemens Schwaighofer
2025-07-09 18:54:03 +09:00
parent 208f002284
commit c657dc564e
2 changed files with 7 additions and 1 deletions

View File

@@ -324,7 +324,8 @@ class Log:
"""
self.logger.log(Log.EXCEPTION, msg, *args, exc_info=True, extra=extra)
def validate_log_level(self, log_level: Any) -> bool:
@staticmethod
def validate_log_level(log_level: Any) -> bool:
"""
if the log level is invalid, will erturn false