mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +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 {
|
||||
logger, _ := zap.NewProduction()
|
||||
if debug || os.Getenv("ENV") != "production" {
|
||||
if debug || os.Getenv("ENV") == "" {
|
||||
logger, _ = zap.NewDevelopment()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue