Merge pull request #181 from skovtunenko/master

Removed unconditional logging profile
This commit is contained in:
Dawid Dziurla 2019-10-23 11:52:46 +02:00 committed by GitHub
commit d9a94779f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ import (
func NewLogger(config *config.AppConfig, rollrusHook string) *logrus.Entry {
var log *logrus.Logger
environment := "production"
if true || config.Debug || os.Getenv("DEBUG") == "TRUE" { // TODO: remove true here
if config.Debug || os.Getenv("DEBUG") == "TRUE" {
environment = "development"
log = newDevelopmentLogger(config)
} else {