refactor: use a sub logger

This commit is contained in:
Derrick Hammer 2024-01-12 08:22:51 -05:00
parent 522ed11d50
commit e6f3df2882
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -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{},
}