[#1437] node: Use ctx for logging

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-10-21 10:22:54 +03:00
parent c16dae8b4d
commit 6db46257c0
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0
157 changed files with 764 additions and 713 deletions

View file

@ -1,6 +1,7 @@
package event
import (
"context"
"errors"
"fmt"
@ -89,7 +90,7 @@ func WorkerPoolHandler(w util2.WorkerPool, h Handler, log *logger.Logger) Handle
h(e)
})
if err != nil {
log.Warn(logs.EventCouldNotSubmitHandlerToWorkerPool,
log.Warn(context.Background(), logs.EventCouldNotSubmitHandlerToWorkerPool,
zap.String("error", err.Error()),
)
}