mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-10 18:48:11 -07:00
(minor) unify log keys
This commit is contained in:
@@ -48,7 +48,7 @@ func NewHooks(configs []conf.NamedMapConfig, storage storage.PeerStorage) (hooks
|
||||
buildersMU.RLock()
|
||||
defer buildersMU.RUnlock()
|
||||
for _, c := range configs {
|
||||
logger.Debug().Object("hook", c).Msg("starting hook")
|
||||
logger.Debug().Str("name", c.Name).Object("hook", c).Msg("starting hook")
|
||||
newHook, ok := builders[c.Name]
|
||||
if !ok {
|
||||
err = fmt.Errorf("hook with name '%s' does not exists", c.Name)
|
||||
|
||||
Reference in New Issue
Block a user