fix: WithLogger is inside Decorate

This commit is contained in:
Derrick Hammer 2024-01-28 03:13:11 -05:00
parent 4a66be5b87
commit 9bb7a4cc83
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -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,