From eda759a437258109b6c9247169cd0ee3ecf68333 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Tue, 26 Dec 2023 18:10:44 +0100 Subject: [PATCH] Rather use log.Errorw instead of log.Fatalw if logger fails to sync --- cmd/nourybot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nourybot/main.go b/cmd/nourybot/main.go index 9c2195e..cb753ee 100644 --- a/cmd/nourybot/main.go +++ b/cmd/nourybot/main.go @@ -54,7 +54,7 @@ func main() { logger := zap.NewExample() defer func() { if err := logger.Sync(); err != nil { - logger.Sugar().Fatalw("error syncing logger", + logger.Sugar().Errorw("error syncing logger", "error", err, ) }