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 {
|
fx.Decorate(func() *zap.Logger {
|
||||||
return logger
|
return logger
|
||||||
},
|
}),
|
||||||
fx.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger {
|
fx.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger {
|
||||||
return &fxevent.ZapLogger{Logger: logger}
|
return &fxevent.ZapLogger{Logger: logger}
|
||||||
})),
|
}),
|
||||||
fx.Invoke(initCheckRequiredConfig),
|
fx.Invoke(initCheckRequiredConfig),
|
||||||
fx.Provide(NewIdentity),
|
fx.Provide(NewIdentity),
|
||||||
db.Module,
|
db.Module,
|
||||||
|
|
Loading…
Reference in New Issue