From 2ffd30dd0f1e064a9ce08108ee4d1487a4c4c27b Mon Sep 17 00:00:00 2001 From: genofire Date: Tue, 28 Dec 2021 18:08:53 +0100 Subject: [PATCH] use production logger as default logger --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5c9fe63..4ddc739 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ type configData struct { func main() { configPath := "config.toml" - log := zap.L() + log, _ := zap.NewProduction() flag.StringVar(&configPath, "c", configPath, "path to configuration file")