Skip to content

Commit

Permalink
chore(logrus): avoid using stdlogger (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <[email protected]>
  • Loading branch information
rogerogers authored Dec 11, 2023
1 parent 98413c3 commit acc7b4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logrus/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ type config struct {
}

func defaultConfig() *config {
// std logger
stdLogger := logrus.StandardLogger()
// new logger
logger := logrus.New()
// default json format
stdLogger.SetFormatter(new(logrus.JSONFormatter))
logger.SetFormatter(new(logrus.JSONFormatter))

return &config{
logger: logrus.StandardLogger(),
logger: logger,
hooks: []logrus.Hook{},
}
}
Expand Down

0 comments on commit acc7b4e

Please sign in to comment.