fix: WithLogger is inside Decorate
This commit is contained in:
parent
4a66be5b87
commit
9bb7a4cc83
|
@ -38,10 +38,10 @@ func main() {
|
|||
|
||||
fx.Decorate(func() *zap.Logger {
|
||||
return logger
|
||||
},
|
||||
}),
|
||||
fx.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger {
|
||||
return &fxevent.ZapLogger{Logger: logger}
|
||||
})),
|
||||
}),
|
||||
fx.Invoke(initCheckRequiredConfig),
|
||||
fx.Provide(NewIdentity),
|
||||
db.Module,
|
||||
|
|
Loading…
Reference in New Issue