From 2f422edd314fe7e79874bfd70d2becdb1d80ff7d Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 27 Sep 2025 01:17:26 +0300 Subject: [PATCH] logger --- common_lib/utils/auth.py | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common_lib/utils/auth.py b/common_lib/utils/auth.py index aa57776..f0384e7 100644 --- a/common_lib/utils/auth.py +++ b/common_lib/utils/auth.py @@ -38,7 +38,8 @@ async def _fetch_current_user( "require_permissions": require_permissions }, ) - except httpx.RequestError: + except httpx.RequestError as e: + print("_fetch_current_user error", e) raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE, detail="Token service unavailable") if response.status_code != 200: diff --git a/pyproject.toml b/pyproject.toml index 76aaada..c3be7dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "common-lib" -version = "0.0.20" +version = "0.0.21" description = "Библиотека общих компонентов для микросервисов yobble" authors = [{ name = "cheykrym", email = "you@example.com" }] license = "MIT"