[#1437] node: Fix contextcheck linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
6921a89061
commit
7429553266
209 changed files with 1068 additions and 1036 deletions
|
@ -10,8 +10,8 @@ import (
|
|||
)
|
||||
|
||||
// LogServiceError writes error message of object service to provided logger.
|
||||
func LogServiceError(l *logger.Logger, req string, node network.AddressGroup, err error) {
|
||||
l.Error(context.Background(), logs.UtilObjectServiceError,
|
||||
func LogServiceError(ctx context.Context, l *logger.Logger, req string, node network.AddressGroup, err error) {
|
||||
l.Error(ctx, logs.UtilObjectServiceError,
|
||||
zap.String("node", network.StringifyGroup(node)),
|
||||
zap.String("request", req),
|
||||
zap.String("error", err.Error()),
|
||||
|
@ -19,8 +19,8 @@ func LogServiceError(l *logger.Logger, req string, node network.AddressGroup, er
|
|||
}
|
||||
|
||||
// LogWorkerPoolError writes debug error message of object worker pool to provided logger.
|
||||
func LogWorkerPoolError(l *logger.Logger, req string, err error) {
|
||||
l.Error(context.Background(), logs.UtilCouldNotPushTaskToWorkerPool,
|
||||
func LogWorkerPoolError(ctx context.Context, l *logger.Logger, req string, err error) {
|
||||
l.Error(ctx, logs.UtilCouldNotPushTaskToWorkerPool,
|
||||
zap.String("request", req),
|
||||
zap.String("error", err.Error()),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue