diff --git a/pkg/services/object/util/log.go b/pkg/services/object/util/log.go index 859d96af04..72b6b5450a 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()), )