From 539c8e6526c397c49f1098b3bcb5c8fac9d44711 Mon Sep 17 00:00:00 2001 From: ipu Date: Tue, 5 Aug 2025 12:33:00 +0300 Subject: [PATCH] add debug log to estimation exceptions --- src/api/v1/router.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/v1/router.py b/src/api/v1/router.py index 5309db1..25e6731 100644 --- a/src/api/v1/router.py +++ b/src/api/v1/router.py @@ -42,15 +42,13 @@ async def estimate(request: models.EstimationRequest): return estimation_response except HTTPException as e: + print("HTTPException in estimate: ", e) raise e except Exception as e: + print("Exception in estimate: ", e) raise HTTPException( status_code=500, detail=f"Server error: {str(e)}" ) - - - - \ No newline at end of file