Skip to content

Commit

Permalink
Sets default log level to info.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Aug 28, 2021
1 parent 7c0079d commit f4a5020
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ import (
"os"
)

const DefaultLogLevel = "info"

func main() {
lvl, ok := os.LookupEnv("LOG_LEVEL")
if !ok {
lvl = "debug"
lvl = DefaultLogLevel
}
ll, err := logrus.ParseLevel(lvl)
if err != nil {
Expand Down

0 comments on commit f4a5020

Please sign in to comment.