Skip to content

Commit

Permalink
tweak msg/count
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecodym committed May 22, 2024
1 parent 575f4a9 commit 3bb4d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sources/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,11 @@ func (s *Source) getAllProjectRepos(
}
// Skip projects configured to be ignored.
if ignoreRepo(proj.PathWithNamespace) {
ctx.Logger().V(3).Info("skipping project", "reason", "ignore glob")
ctx.Logger().V(3).Info("skipping project", "reason", "ignored in config")
continue
}
// Record that we've seen this project.
uniqueProjects[proj.ID] = proj
projectsWithNamespace = append(projectsWithNamespace, proj.NameWithNamespace)
// Report an error if we could not convert the project into a URL.
if _, err := url.Parse(proj.HTTPURLToRepo); err != nil {
ctx.Logger().V(3).Info("skipping project",
Expand All @@ -441,6 +440,7 @@ func (s *Source) getAllProjectRepos(
// Report the unit.
unit := git.SourceUnit{Kind: git.UnitRepo, ID: proj.HTTPURLToRepo}
gitlabReposEnumerated.WithLabelValues(s.name).Inc()
projectsWithNamespace = append(projectsWithNamespace, proj.NameWithNamespace)
if err := reporter.UnitOk(ctx, unit); err != nil {
return err
}
Expand Down

0 comments on commit 3bb4d7b

Please sign in to comment.