From e6f3df288268ce3352576b1350e9c4d419ecd39d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 12 Jan 2024 08:22:51 -0500 Subject: [PATCH] refactor: use a sub logger --- protocols/s5.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protocols/s5.go b/protocols/s5.go index 4af554b..a5b4ba5 100644 --- a/protocols/s5.go +++ b/protocols/s5.go @@ -7,7 +7,6 @@ import ( s5interfaces "git.lumeweb.com/LumeWeb/libs5-go/interfaces" s5node "git.lumeweb.com/LumeWeb/libs5-go/node" "git.lumeweb.com/LumeWeb/portal/interfaces" - "github.com/spf13/viper" bolt "go.etcd.io/bbolt" "go.uber.org/zap" ) @@ -38,7 +37,7 @@ func (s *S5Protocol) Initialize(portal interfaces.Portal) error { }, KeyPair: s5ed.New(portal.Identity()), DB: nil, - Logger: logger, + Logger: portal.Logger().Named("s5"), HTTP: s5config.HTTPConfig{}, }