Merge pull request #1 from skovtunenko/Removed-unconditional-logging-profile

Removed unconditional logging profile
This commit is contained in:
Sergio 2019-10-23 12:42:21 +03:00 committed by GitHub
commit ab2fed3215
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 {