fix error

This commit is contained in:
Rebill.Ruan 2015-06-02 15:33:32 +08:00
parent 6ba91e24c4
commit e86319aa1d
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ init() {
// do something here to set environment depending on an environment variable
// or command-line flag
if Environment == "production" {
log.SetFormatter(logrus.JSONFormatter)
log.SetFormatter(&logrus.JSONFormatter{})
} else {
// The TextFormatter is default, you don't actually have to do this.
log.SetFormatter(&log.TextFormatter{})