Skip to content

Commit

Permalink
Fixed log
Browse files Browse the repository at this point in the history
  • Loading branch information
llopat committed Jul 3, 2023
1 parent 25816f8 commit 488cd85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/service/v1/config-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ func (s *configServiceServer) FindGitlabProjectId(api *gitlab.Client, uid string
log.Printf("Searching for GitLab Projects within Group %d / %s", groups[0].ID, groups[0].Name)
projs, _, err := api.Groups.ListGroupProjects(groups[0].ID, nil)
if err != nil || len(projs) == 0 {
log.Printf("Group %s is empty or unaccessible", groups[0].Name)
log.Printf("Group %s is empty or inaccessible", groups[0].Name)
return -1, status.Errorf(codes.NotFound, "Project containing config not found on Gitlab")
}

//Find our project in group projects list
log.Printf("Found %d Projects and looking for %s", len(projs), uid)
log.Printf("Found %d projects and looking for %s", len(projs), uid)
for _, proj := range projs {
if proj.Name == uid {
return proj.ID, nil
Expand Down

0 comments on commit 488cd85

Please sign in to comment.