feat(新功能):

fix(修复bug): 关闭调试日志打印
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhouchengrong
2025-01-10 15:07:06 +08:00
parent f6b2e283f9
commit 48cfb4c1ca
4 changed files with 5 additions and 4 deletions

View File

@@ -22,7 +22,8 @@ def ClassCallRunTime(func):
end_time = time.time()
execution_time = end_time - start_time
class_name = args[0].__class__.__name__ # 获取类名
print(f"class name: {class_name} , run time is : {execution_time} s")
if execution_time > 0.05:
logging.info(f"class name: {class_name} , run time is : {execution_time} s")
return result
return wrapper