mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 11:47:42 +00:00
tweak logger verbosity
This commit is contained in:
parent
b1f266bf91
commit
ff9e32ef20
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ import (
|
||||||
|
|
||||||
func NewLogger(debug bool) *zap.Logger {
|
func NewLogger(debug bool) *zap.Logger {
|
||||||
logger, _ := zap.NewProduction()
|
logger, _ := zap.NewProduction()
|
||||||
if debug || os.Getenv("ENV") != "production" {
|
if debug || os.Getenv("ENV") == "" {
|
||||||
logger, _ = zap.NewDevelopment()
|
logger, _ = zap.NewDevelopment()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue