Skip to content

Commit

Permalink
improve debug messages for gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Aug 28, 2024
1 parent 9f82c2e commit 27063df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
}

for _, r := range gitlabrepos {
sub.Debug().Str("repo-type", "user").Msg(r.WebURL)
if repo.Filter.ExcludeForks {
if r.ForkedFromProject != nil {
continue
Expand All @@ -230,7 +231,6 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
}

if len(repo.Filter.Languages) > 0 {
sub.Debug().Msg(r.WebURL)
langs, _, err := client.Projects.GetProjectLanguages(r.ID)
if err != nil {
sub.Error().
Expand Down Expand Up @@ -385,6 +385,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
}
for k, gr := range gitlabgrouprepos {
for _, r := range gr {
sub.Debug().Str("repo-type", "group").Msg(r.WebURL)
if repo.Filter.ExcludeForks {
if r.ForkedFromProject != nil {
continue
Expand Down

0 comments on commit 27063df

Please sign in to comment.