mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-16 07:20:59 +00:00
perf: 启动失败时输出完整traceback (#799)
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
|
||||||
from . import app
|
from . import app
|
||||||
from ..audit import identifier
|
from ..audit import identifier
|
||||||
from . import stage
|
from . import stage
|
||||||
@@ -40,4 +42,4 @@ async def main():
|
|||||||
app_inst = await make_app()
|
app_inst = await make_app()
|
||||||
await app_inst.run()
|
await app_inst.run()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"应用启动失败: {e}")
|
traceback.print_exc()
|
||||||
|
|||||||
Reference in New Issue
Block a user