From ec0eb9e7848a97eedd95ab688bb143f199a61fc8 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Fri, 18 Oct 2024 12:53:20 -0500 Subject: [PATCH] Add Logging --- macrostrat_db_insertion/security/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/macrostrat_db_insertion/security/main.py b/macrostrat_db_insertion/security/main.py index 8311c1b..93047ae 100644 --- a/macrostrat_db_insertion/security/main.py +++ b/macrostrat_db_insertion/security/main.py @@ -94,6 +94,7 @@ def get_user_token_from_cookie(token: Annotated[str | None, Depends(oauth2_schem groups = payload.get("groups", []) token_data = TokenData(sub=sub, groups=groups) except JWTError as e: + logging.error(f"Error decoding token: {e}") return None logging.debug(f"Token data found in the cookies: {token_data.model_dump_json()}")