Removed unconditional logging profile

This commit is contained in:
Sergio 2019-10-23 12:41:46 +03:00 committed by GitHub
parent 7e4ad3de29
commit 191bf9a3dc
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 {