From dce37e1643148a5be8cce83accf2961d775c44a7 Mon Sep 17 00:00:00 2001 From: Brendan Galloway Date: Thu, 30 Jun 2022 10:25:53 +0200 Subject: [PATCH] fix: print pipeline ID --- pkg/projects.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/projects.go b/pkg/projects.go index 4478846..88a0dd0 100644 --- a/pkg/projects.go +++ b/pkg/projects.go @@ -3,9 +3,9 @@ package pkg import ( "errors" "fmt" + "log" "strings" - "github.com/google/martian/log" "github.com/xanzy/go-gitlab" ) @@ -35,7 +35,6 @@ func (g *GitLabProject) SetBranch(name string) error { if err != nil { return err } - log.Infof("Found %s/%s: %s\n", g.Name, branch.Name, branch.Commit.ID) g.branch.Name = branch.Name g.branch.Ref = branch.Commit.ID @@ -87,7 +86,7 @@ func (g *GitLabProject) TriggerPipeline(variables map[string]string) error { return err } g.SetPipeline(pipeline) - log.Infof("Starting pipeline ID %d in project %s: %s\n", pipeline.ID, g.Name, pipeline.WebURL) + log.Println(fmt.Sprintf("Started pipeline ID %d in project %s: %s\n", pipeline.ID, g.Name, pipeline.WebURL)) return nil } @@ -100,7 +99,6 @@ func (g *GitLabProject) GetPipeLineStatus() (string, error) { if err != nil { return "", err } - log.Infof("Pipeline %s/%d status: %s", g.Name, g.pipeline.ID, status.Status) return status.Status, nil }