Skip to content

Commit

Permalink
fix: fixing override global logger after configuring it
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Oct 30, 2023
1 parent c9080e7 commit 25b2e7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bridge/tfchain_bridge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)

Expand Down

0 comments on commit 25b2e7e

Please sign in to comment.