logger
This commit is contained in:
parent
ed44269974
commit
2f422edd31
@ -38,7 +38,8 @@ async def _fetch_current_user(
|
|||||||
"require_permissions": require_permissions
|
"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")
|
raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE, detail="Token service unavailable")
|
||||||
|
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "common-lib"
|
name = "common-lib"
|
||||||
version = "0.0.20"
|
version = "0.0.21"
|
||||||
description = "Библиотека общих компонентов для микросервисов yobble"
|
description = "Библиотека общих компонентов для микросервисов yobble"
|
||||||
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user