fix: fix fx logger
This commit is contained in:
parent
18a54917a0
commit
470bce2209
|
@ -13,6 +13,7 @@ import (
|
||||||
"git.lumeweb.com/LumeWeb/portal/storage"
|
"git.lumeweb.com/LumeWeb/portal/storage"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.uber.org/fx"
|
"go.uber.org/fx"
|
||||||
|
"go.uber.org/fx/fxevent"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -39,9 +40,9 @@ 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.Logger {
|
||||||
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