From 25b2e7e6a383e515834f449854373dfd9270bb32 Mon Sep 17 00:00:00 2001 From: sameh-farouk Date: Mon, 30 Oct 2023 14:31:53 +0200 Subject: [PATCH] fix: fixing override global logger after configuring it --- bridge/tfchain_bridge/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridge/tfchain_bridge/main.go b/bridge/tfchain_bridge/main.go index 7e74a9944..b30f27d4d 100644 --- a/bridge/tfchain_bridge/main.go +++ b/bridge/tfchain_bridge/main.go @@ -34,7 +34,6 @@ func main() { log.Logger = zerolog.New(os.Stdout).With().Timestamp().Uint("version", logger.VERSION).Logger() if debug { zerolog.SetGlobalLevel(zerolog.DebugLevel) - log.Debug().Msg("debug mode enabled") } else { zerolog.SetGlobalLevel(zerolog.InfoLevel) } @@ -59,7 +58,7 @@ func main() { } log_source := logger.New_log_source(address, bridgeCfg) - log.Logger = zerolog.New(os.Stdout).With().Interface("source", log_source).Logger() + log.Logger = log.Logger.With().Interface("source", log_source).Logger() sigs := make(chan os.Signal, 1)