From 534fba6dfd7dbe5aa43ea5bdcb706f223f786009 Mon Sep 17 00:00:00 2001 From: Kuba Date: Thu, 8 Feb 2024 15:58:55 +0700 Subject: [PATCH] feat(BUX-000): fix duplicate timestamp logging --- logging/logging.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/logging/logging.go b/logging/logging.go index 3f2e1f67b..a6635da65 100644 --- a/logging/logging.go +++ b/logging/logging.go @@ -38,14 +38,12 @@ func CreateLogger(instanceName, format, level string, logOrigin bool) (*zerolog. if logOrigin { logger = ecszerolog.New(writer, logLevel, origin). With(). - Timestamp(). Str("application", instanceName). Str("service", "bux-server"). Logger() } else { logger = ecszerolog.New(writer, logLevel). With(). - Timestamp(). Str("application", instanceName). Str("service", "bux-server"). Logger() @@ -62,7 +60,6 @@ func CreateLogger(instanceName, format, level string, logOrigin bool) (*zerolog. func GetDefaultLogger() *zerolog.Logger { logger := ecszerolog.New(os.Stdout, ecszerolog.Level(zerolog.DebugLevel)). With(). - Timestamp(). Caller(). Str("application", "bux-default"). Logger()