Skip to content

Commit

Permalink
chore: add error log in fetch resource in provider service (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: utsav14nov <[email protected]>
  • Loading branch information
utsav14nov and utsav14nov authored Jan 17, 2024
1 parent 5366eaf commit 4c06e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/provider/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (s *Service) FetchResources(ctx context.Context) error {
s.logger.Info(ctx, "resources added", "provider_urn", p.URN, "count", len(flattenResources(resources)))
if err := s.resourceService.BulkUpsert(ctx, resources); err != nil {
failedProviders = append(failedProviders, p.URN)
s.logger.Error(ctx, "failed to add resources", "provider_urn", p.URN)
s.logger.Error(ctx, "failed to add resources", "provider_urn", p.URN, "error", err)
}
}

Expand Down

0 comments on commit 4c06e74

Please sign in to comment.