From 554b85411fc930edfe8c1cbf2e42ab8fbece9027 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 30 Dec 2022 13:31:59 +0300 Subject: [PATCH] [#2190] services/object: Log service error with INFO level Signed-off-by: Evgenii Stratonikov --- pkg/services/object/util/log.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/services/object/util/log.go b/pkg/services/object/util/log.go index 859d96af0..72b6b5450 100644 --- a/pkg/services/object/util/log.go +++ b/pkg/services/object/util/log.go @@ -6,9 +6,9 @@ import ( "go.uber.org/zap" ) -// LogServiceError writes debug error message of object service to provided logger. +// LogServiceError writes error message of object service to provided logger. func LogServiceError(l *logger.Logger, req string, node network.AddressGroup, err error) { - l.Debug("object service error", + l.Error("object service error", zap.String("node", network.StringifyGroup(node)), zap.String("request", req), zap.String("error", err.Error()), @@ -17,7 +17,7 @@ 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.Debug("could not push task to worker pool", + l.Error("could not push task to worker pool", zap.String("request", req), zap.String("error", err.Error()), )