Skip to content

Commit

Permalink
reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zyclonite committed May 15, 2024
1 parent b2aa30d commit be00daf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,12 @@ func (p *Plugin) runJobs() {
var err error
if j.action == "upload" {
err = client.Upload(j.local, j.remote)
fmt.Printf("u")
} else if j.action == "redirect" {
err = client.Redirect(j.local, j.remote)
fmt.Printf("r")
} else if j.action == "delete" {
err = client.Delete(j.remote)
fmt.Printf("d")
} else if j.action == "invalidateCloudFront" {
invalidateJob = &j
fmt.Printf("i")
} else {
err = nil
}
Expand All @@ -190,6 +186,7 @@ func (p *Plugin) runJobs() {
}

if invalidateJob != nil {
fmt.Printf("Invalidating CloudFront distribution\n")
err := client.Invalidate(invalidateJob.paths)
if err != nil {
fmt.Printf("ERROR: failed to %s %s: %+v\n", invalidateJob.action, invalidateJob.paths, err)
Expand Down

0 comments on commit be00daf

Please sign in to comment.