Skip to content

Commit

Permalink
fix: set global default log level to error
Browse files Browse the repository at this point in the history
  • Loading branch information
xx4h committed Oct 12, 2024
1 parent c174e3c commit cb9391a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func newRootCmd(h *pkg.Hctl, out io.Writer, _ []string) *cobra.Command {
}

func RunCmd() {
zerolog.SetGlobalLevel(zerolog.ErrorLevel)
output := zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}
output.FormatLevel = func(i interface{}) string {
return strings.ToUpper(fmt.Sprintf("| %-6s|", i))
Expand Down

0 comments on commit cb9391a

Please sign in to comment.