Skip to content

Commit

Permalink
Merge pull request #2 from AmauryOrtega/chore/log-accuracy
Browse files Browse the repository at this point in the history
chore (logging): increase accuracy of logs
  • Loading branch information
rafaelperoco authored Aug 9, 2022
2 parents 39f9b4a + 3e36c23 commit ad3f7c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ func main () {
fmt.Println(err)
return
}
for _, job := range jobs {
fmt.Println("job processed:", job.ID)
}

for _, job := range jobs {
fmt.Println("job to process:", job.ID)
url := fmt.Sprintf("%v/api/v4/projects/%v/jobs/%d/artifacts", server, project_id, job.ID)
req, err := http.NewRequest("DELETE", url, nil)
if err != nil {
Expand All @@ -70,4 +68,4 @@ func main () {
fmt.Println("job artifacts deleted:", job.ID)
}
}
}
}

0 comments on commit ad3f7c4

Please sign in to comment.