Skip to content

Commit

Permalink
fix(logger): fix printing log level
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jun 16, 2020
1 parent 56d4882 commit a074f61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/emailer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func main() {
log.Fatal().Msgf("failed to build container: %v", err)
}

emailSubscriber := ctn.Resolve("emailer-subscriber") //.(subscriber.EmailSubscriber)
emailSubscriber := ctn.Resolve("emailer-subscriber") //.(*subscriber.EmailSubscriber)
// Register Struct as Subscriber
micro.RegisterSubscriber(constants.EMAILER_SERVICE, service.Server(), emailSubscriber)

Expand Down
2 changes: 1 addition & 1 deletion shared/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (l *defaultLogger) Init(opts ...Option) error {
grpclog.SetLoggerV2(zeroToGrpcAdopter.New(gLogger))

logr.Info().
Str("LogLevel", l.opts.Level.String()).
Str("LogLevel", logr.GetLevel().String()).
Str("LogFormat", string(l.opts.Format)).
Msg("Logger set to Zerolog with:")

Expand Down

0 comments on commit a074f61

Please sign in to comment.