From be00dafbe27ffa75af833c83388e4254fcc4977e Mon Sep 17 00:00:00 2001 From: Lukas Prettenthaler Date: Wed, 15 May 2024 10:28:00 -0600 Subject: [PATCH] reduce logging --- plugin.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin.go b/plugin.go index ac1e9e7..dab21d0 100644 --- a/plugin.go +++ b/plugin.go @@ -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 } @@ -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)