Skip to content

Commit

Permalink
fix log level
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfstudy committed Nov 12, 2018
1 parent 0f85270 commit 6d28abb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions initmain.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ func appInitMain(args []string) {

logConf := struct {
FileName string `json:"filename"`
Level int `json:"level"`
}{
FileName: logDir + "/" + conf.Cfg.Log.FileName + ".log",
Level: log.GetLevel(conf.Cfg.Log.Level),
}

configuration, err := json.Marshal(logConf)
Expand Down

0 comments on commit 6d28abb

Please sign in to comment.