Skip to content

Commit

Permalink
[debug] Add logging to github client setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Jan 29, 2025
1 parent 8c31300 commit f5421dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snapshot_manager/snapshot_manager/github_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def __init__(self, config: config.Config, github_token: str = None, **kwargs):
"""
self.config = config
if github_token is None:
logging.info(
f"Reading Github token from this environment variable: {self.config.github_token_env}"
)
github_token = os.getenv(self.config.github_token_env)
auth = github.Auth.Token(github_token)
self.github = github.Github(auth=auth)
Expand Down

0 comments on commit f5421dc

Please sign in to comment.