Skip to content

Commit

Permalink
Add logging to bitbucket list repos
Browse files Browse the repository at this point in the history
Signed-off-by: joseph-sentry <[email protected]>
  • Loading branch information
joseph-sentry committed Aug 16, 2023
1 parent 5fc16f4 commit c43f358
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shared/torngit/bitbucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ async def list_repos(self, username=None, token=None):
else:
usernames = [username]
# fetch repo information
log.info(
"Bitbucket: fetching repos from teams",
extra=dict(usernames=usernames, repos=repos_to_log),
)
async with self.get_client() as client:
for team in usernames:
try:
Expand Down Expand Up @@ -369,6 +373,10 @@ async def list_repos(self, username=None, token=None):
"Unable to fetch repos from team on Bitbucket",
extra=dict(team_name=team, repository_names=repos_to_log),
)
log.info(
"Bitbucket: finished fetching repos",
extra=dict(usernames=usernames, repos=data),
)
return data

async def list_permissions(self, token=None):
Expand Down

0 comments on commit c43f358

Please sign in to comment.