Skip to content

Commit

Permalink
fix: do not log errors if version check fails (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
linpengzhang authored Jan 25, 2024
1 parent 656a1d3 commit 6d750bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ import (
"strings"
"time"

"github.com/pkg/errors"
"github.com/spf13/cobra"

"github.com/lacework/go-sdk/internal/cache"
"github.com/lacework/go-sdk/internal/file"
"github.com/lacework/go-sdk/lwcomponent"
"github.com/lacework/go-sdk/lwupdater"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

var (
Expand Down Expand Up @@ -101,7 +100,7 @@ Set the environment variable 'LW_UPDATES_DISABLE=1' to avoid checking for update

// check the latest version of the cli
if _, err := versionCheck(); err != nil {
cli.Log.Errorw("unable to perform lacework cli version check",
cli.Log.Debugw("unable to perform lacework cli version check",
"error", err.Error())
}
},
Expand Down

0 comments on commit 6d750bc

Please sign in to comment.