1
0
mirror of https://github.com/beego/bee.git synced 2024-06-02 05:53:28 +00:00

Update logger.go

This commit is contained in:
Sergey Lanzman 2017-03-11 09:14:24 +02:00 committed by GitHub
parent abf2b4a4cb
commit 380cce650e

View File

@ -45,7 +45,7 @@ var (
instance *BeeLogger
once sync.Once
)
var debugMode = map[string]bool{"1": true, "0": false}[os.Getenv("DEBUG_ENABLED")]
var debugMode = os.Getenv("DEBUG_ENABLED") == "1"
var logLevel = levelInfo