From fc44023e97db380b3e919e9d7bd0515b4b2275ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Voto=C4=8Dek?= Date: Fri, 22 Nov 2024 02:16:59 +0100 Subject: [PATCH] log error when exception --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index b67586b..5b95b8d 100644 --- a/main.py +++ b/main.py @@ -59,6 +59,7 @@ async def read_item(request: LinkRequest): detail="Timed out bypassing Cloudflare", status_code=408 ) from e except Exception as e: + logger.error(e) browser.stop() raise HTTPException(detail="Couldn't bypass", status_code=500) from e