Merge pull request #190 from rebill/master

fix SetFormatter error
This commit is contained in:
Simon Eskildsen 2015-06-02 08:34:42 -04:00
commit c370730052
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 // do something here to set environment depending on an environment variable
// or command-line flag // or command-line flag
if Environment == "production" { if Environment == "production" {
log.SetFormatter(logrus.JSONFormatter) log.SetFormatter(&logrus.JSONFormatter{})
} else { } else {
// The TextFormatter is default, you don't actually have to do this. // The TextFormatter is default, you don't actually have to do this.
log.SetFormatter(&log.TextFormatter{}) log.SetFormatter(&log.TextFormatter{})