Skip to content

Commit

Permalink
Fix default verbosity and log level to comply with current output
Browse files Browse the repository at this point in the history
  • Loading branch information
obourdon committed Jan 12, 2021
1 parent ad39eac commit a4998f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/goss/goss.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func main() {
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "loglevel, L",
Value: "WARN",
Value: "FATAL",
Usage: "Goss log verbosity level",
EnvVar: "GOSS_LOGLEVEL",
},
Expand Down
2 changes: 1 addition & 1 deletion logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func setLogLevel(c *util.Config) error {
return fmt.Errorf("Unsupported log level: %s", c.LogLevel)
}
filter.MinLevel = logutils.LogLevel(c.LogLevel)
log.Printf("Setting log level to %v", c.LogLevel)
log.SetOutput(filter)
log.Printf("[DEBUG] Setting log level to %v", c.LogLevel)
return nil
}
2 changes: 1 addition & 1 deletion util/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewConfig(opts ...ConfigOption) (rc *Config, err error) {
AnnounceToCLI: false,
Cache: 5 * time.Second,
Debug: false,
LogLevel: "WARN",
LogLevel: "FATAL",
Endpoint: "/healthz",
FormatOptions: []string{},
IgnoreList: []string{},
Expand Down

0 comments on commit a4998f7

Please sign in to comment.