Skip to content

Commit

Permalink
fix: log level doesn't take effect (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyang0 committed Dec 1, 2023
1 parent 4066bf7 commit 969435f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ func SetupLog(ctx context.Context, cfg *types.ServerLogConfig, dsn string) error
default:
writer = os.Stdout
}
rslog := zerolog.New(writer).With().Timestamp().Logger()
rslog.Level(level)
rslog := zerolog.New(writer).With().Timestamp().Logger().Level(level)
zerolog.ErrorStackMarshaler = func(err error) any {
return errors.GetSafeDetails(err).SafeDetails
}
Expand Down

0 comments on commit 969435f

Please sign in to comment.