Skip to content

Commit

Permalink
Add Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 18, 2024
1 parent 5f437d3 commit ec0eb9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions macrostrat_db_insertion/security/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}")
Expand Down

0 comments on commit ec0eb9e

Please sign in to comment.