fix: fix fx logger

This commit is contained in:
Derrick Hammer 2024-01-28 04:53:44 -05:00
parent 18a54917a0
commit 470bce2209
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ import (
"git.lumeweb.com/LumeWeb/portal/storage"
"github.com/spf13/viper"
"go.uber.org/fx"
"go.uber.org/fx/fxevent"
"go.uber.org/zap"
"net"
"net/http"
@ -39,9 +40,9 @@ func main() {
fx.Decorate(func() *zap.Logger {
return logger
}),
/* fx.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger {
return &fxevent.ZapLogger{Logger: logger}
}),*/
fx.WithLogger(func(logger *zap.Logger) fxevent.Logger {
return &fxevent.ZapLogger{Logger: logger}
}),
fx.Invoke(initCheckRequiredConfig),
fx.Provide(NewIdentity),
db.Module,