Skip to content

Commit

Permalink
Log errors when listing repositories (#4020)
Browse files Browse the repository at this point in the history
We seem to have an issue with listing repos in the Oauth smoke test
flow. This should provide us with more context about what is going on.
  • Loading branch information
dmjb authored Jul 26, 2024
1 parent c9688e6 commit 129502c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controlplane/handlers_repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ func (s *Server) ListRemoteRepositoriesFromProvider(
for providerName, provider := range provs {
results, err := s.fetchRepositoriesForProvider(ctx, projectID, providerName, provider)
if err != nil {
zerolog.Ctx(ctx).Error().Err(err).Msgf("error listing repositories for provider %s in project %s", providerName, projectID)
errorProvs = append(errorProvs, providerName)
continue
}
Expand Down

0 comments on commit 129502c

Please sign in to comment.