diff --git a/app/middlewares/app_middlewares.py b/app/middlewares/app_middlewares.py index 2f989c9..9fa6fd0 100644 --- a/app/middlewares/app_middlewares.py +++ b/app/middlewares/app_middlewares.py @@ -1,4 +1,5 @@ import time +import traceback from fastapi import FastAPI, HTTPException from passlib.exc import InvalidTokenError @@ -70,6 +71,7 @@ def add_app_middlewares(app: FastAPI): return JSONResponse(content={"message": e.detail}, status_code=status.HTTP_500_INTERNAL_SERVER_ERROR) except Exception as e: print(e) + traceback.print_exc() return JSONResponse(content={"message": str(e)}, status_code=status.HTTP_500_INTERNAL_SERVER_ERROR) return response