tweak logger verbosity

This commit is contained in:
Andre Medeiros 2022-05-23 14:20:45 -04:00
parent b1f266bf91
commit ff9e32ef20

View file

@ -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()
}