Skip to content

Commit

Permalink
fix init fail with LOG_LEVEL (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
butnet authored and palmerabollo committed Jan 16, 2020
1 parent 84b9b67 commit ad4978a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func init() {
logrus.SetFormatter(&logrus.JSONFormatter{})
logrus.SetOutput(os.Stdout)

if value := os.Getenv("LOG_LEVEL"); value == "" {
if value := os.Getenv("LOG_LEVEL"); value != "" {
logrus.SetLevel(parseLogLevel(value))
}

Expand Down

0 comments on commit ad4978a

Please sign in to comment.