Skip to content

Commit

Permalink
fix(worker): remove logs aboyt skipped artifacts (#4791)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin authored and yesnault committed Dec 10, 2019
1 parent 4c9641c commit 1c9be7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions engine/worker/builtin_artifact_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ func runArtifactDownload(w *currentWorker) BuiltInAction {
a := &artifacts[i]

if pattern != "" && !regexp.MatchString(a.Name) {
sendLog(fmt.Sprintf("%s does not match pattern %s - skipped", a.Name, pattern))
wg.Done()
continue
}

if tag != "" && a.Tag != tag {
sendLog(fmt.Sprintf("%s does not match tag %s - skipped", a.Name, tag))
wg.Done()
continue
}
Expand Down
2 changes: 0 additions & 2 deletions engine/worker/cmd_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,11 @@ func (wk *currentWorker) downloadHandler(w http.ResponseWriter, r *http.Request)
a := &artifacts[i]

if reqArgs.Pattern != "" && !regexp.MatchString(a.Name) {
sendLog(fmt.Sprintf("%s does not match pattern %s - skipped", a.Name, reqArgs.Pattern))
wg.Done()
continue
}

if reqArgs.Tag != "" && a.Tag != reqArgs.Tag {
sendLog(fmt.Sprintf("%s does not match tag %s - skipped", a.Name, reqArgs.Tag))
wg.Done()
continue
}
Expand Down

0 comments on commit 1c9be7f

Please sign in to comment.