From 933471b4d92d50447098d300b84d68b5d516c5ea Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Fri, 31 May 2024 15:37:56 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=E8=BE=93=E5=87=BA=E5=AE=8C=E6=95=B4traceback=20(#799)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/core/boot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/core/boot.py b/pkg/core/boot.py index 7cf0b420..22af7ff8 100644 --- a/pkg/core/boot.py +++ b/pkg/core/boot.py @@ -1,5 +1,7 @@ from __future__ import print_function +import traceback + from . import app from ..audit import identifier from . import stage @@ -40,4 +42,4 @@ async def main(): app_inst = await make_app() await app_inst.run() except Exception as e: - print(f"应用启动失败: {e}") + traceback.print_exc()