From 9bb7a4cc83057f3984ce47b475d096f90cb6cb0b Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Jan 2024 03:13:11 -0500 Subject: [PATCH] fix: WithLogger is inside Decorate --- cmd/portal/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/portal/main.go b/cmd/portal/main.go index c420531..1ca521b 100644 --- a/cmd/portal/main.go +++ b/cmd/portal/main.go @@ -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.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger { + return &fxevent.ZapLogger{Logger: logger} + }), fx.Invoke(initCheckRequiredConfig), fx.Provide(NewIdentity), db.Module,