Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalar committed Nov 25, 2023
1 parent 98edebc commit b2043eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ import (
func init() {
filter := &logutils.LevelFilter{
Levels: []logutils.LogLevel{"DEBUG", "INFO", "WARN", "ERROR"},
MinLevel: logutils.LogLevel("DEBUG"),
MinLevel: logutils.LogLevel("WARN"),
Writer: os.Stderr,
}
if os.Getenv("PP_LOG") != "" {
filter.MinLevel = logutils.LogLevel(os.Getenv("PP_LOG"))
log.SetFlags(log.Lshortfile)
} else {
filter.MinLevel = logutils.LogLevel("WARN")
log.SetFlags(log.Lshortfile)
}
log.SetOutput(filter)
}
Expand Down

0 comments on commit b2043eb

Please sign in to comment.