perf: 启动失败时输出完整traceback (#799)

This commit is contained in:
RockChinQ
2024-05-31 15:37:56 +08:00
parent f81808d239
commit 933471b4d9

View File

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