Skip to content

Commit

Permalink
Add temp debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbox3 committed Sep 19, 2024
1 parent f429d85 commit 854bc35
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

logger: logging.Logger = logging.getLogger(__name__)

logging.basicConfig(level=logging.DEBUG)


def get_entra_auth_token(token_endpoint: str) -> str | None:
"""Retrieve a Microsoft Entra Auth Token for a given token endpoint.
Expand All @@ -35,4 +37,6 @@ def get_entra_auth_token(token_endpoint: str) -> str | None:
logger.error(f"Failed to retrieve Azure token for the specified endpoint: `{token_endpoint}`.")
return None

logger.info(f"Successfully retrieved Azure token for the specified endpoint: `{token_endpoint}`.")

return auth_token.token if auth_token else None

0 comments on commit 854bc35

Please sign in to comment.