Skip to content

Commit

Permalink
feat(api.py): add logging and print statement when starting backgroun…
Browse files Browse the repository at this point in the history
…d token refresh task
  • Loading branch information
NodeJSmith committed Jul 13, 2024
1 parent 85185eb commit 12b6f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/otf_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ async def create_with_token(cls, access_token: str, id_token: str) -> "Api":

def start_background_refresh(self) -> None:
"""Start the background task for refreshing the token."""
logger.info("Starting background task for refreshing token.")
print("starting background refresh")
self._refresh_task = asyncio.create_task(self._run_refresh_on_loop())

async def _run_refresh_on_loop(self) -> None:
Expand Down

0 comments on commit 12b6f9f

Please sign in to comment.