Skip to content

Commit

Permalink
Move success log into SetStatus
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Jun 14, 2021
1 parent bc73620 commit ae1a86d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/helm-set-status/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"errors"
"io"
"log"
"os"

"github.com/k3s-io/helm-set-status/pkg/common"
Expand Down Expand Up @@ -73,5 +72,4 @@ func main() {
if err := setStatusCmd.Execute(); err != nil {
os.Exit(1)
}
log.Printf("release status updated")
}
2 changes: 2 additions & 0 deletions pkg/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package status

import (
"fmt"
"log"
"os"
"time"

Expand Down Expand Up @@ -29,6 +30,7 @@ func SetStatus(options common.RunOptions) error {
if err := recordRelease(latestRelease, cfg); err != nil {
return errors.Wrapf(err, "failed to update release %s", options.ReleaseName)
}
log.Printf("release %s status updated", options.ReleaseName)
return nil
}

Expand Down

0 comments on commit ae1a86d

Please sign in to comment.