fix: fix fx logger
This commit is contained in:
parent
18a54917a0
commit
470bce2209
|
@ -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 {
|
||||
fx.WithLogger(func(logger *zap.Logger) fxevent.Logger {
|
||||
return &fxevent.ZapLogger{Logger: logger}
|
||||
}),*/
|
||||
}),
|
||||
fx.Invoke(initCheckRequiredConfig),
|
||||
fx.Provide(NewIdentity),
|
||||
db.Module,
|
||||
|
|
Loading…
Reference in New Issue