From 470bce22096a37b0c998b7ba4125e9d99832ed05 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Jan 2024 04:53:44 -0500 Subject: [PATCH] fix: fix fx logger --- cmd/portal/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/portal/main.go b/cmd/portal/main.go index cdbb2ce..2ef9b16 100644 --- a/cmd/portal/main.go +++ b/cmd/portal/main.go @@ -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,