fix log && run_in_threadpool

This commit is contained in:
jxxghp
2025-08-01 07:10:02 +08:00
parent acd7013dc6
commit e6916946a9
2 changed files with 20 additions and 10 deletions
+8
View File
@@ -419,6 +419,14 @@ class LoggerManager:
:param method: 日志方法
:param msg: 日志信息
"""
# 获取当前日志级别
current_level = self.__get_log_level()
method_level = getattr(logging, method.upper(), logging.INFO)
# 如果当前方法的级别低于设定的日志级别,则不处理
if method_level < current_level:
return
# 获取调用者文件名和插件名
caller_name, plugin_name = self.__get_caller()