From 26b30f0dbee599c94ed2c146a94c18b3752b0f89 Mon Sep 17 00:00:00 2001 From: josc146 Date: Tue, 12 Dec 2023 23:16:48 +0800 Subject: [PATCH] add load failed traceback --- backend-python/routes/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend-python/routes/config.py b/backend-python/routes/config.py index 93da367..f031d43 100644 --- a/backend-python/routes/config.py +++ b/backend-python/routes/config.py @@ -74,6 +74,10 @@ def switch_model(body: SwitchModelBody, response: Response, request: Request): ) except Exception as e: print(e) + import traceback + + print(traceback.format_exc()) + quick_log(request, body, f"Exception: {e}") global_var.set(global_var.Model_Status, global_var.ModelStatus.Offline) raise HTTPException(