add load failed traceback
This commit is contained in:
parent
be3b69c65c
commit
26b30f0dbe
@ -74,6 +74,10 @@ def switch_model(body: SwitchModelBody, response: Response, request: Request):
|
|||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
print(traceback.format_exc())
|
||||||
|
|
||||||
quick_log(request, body, f"Exception: {e}")
|
quick_log(request, body, f"Exception: {e}")
|
||||||
global_var.set(global_var.Model_Status, global_var.ModelStatus.Offline)
|
global_var.set(global_var.Model_Status, global_var.ModelStatus.Offline)
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
Loading…
Reference in New Issue
Block a user