[#2190] services/object: Log service error with INFO level
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
b0ad1b9ed2
commit
554b85411f
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ import (
|
||||||
"go.uber.org/zap"
|
"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) {
|
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("node", network.StringifyGroup(node)),
|
||||||
zap.String("request", req),
|
zap.String("request", req),
|
||||||
zap.String("error", err.Error()),
|
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.
|
// LogWorkerPoolError writes debug error message of object worker pool to provided logger.
|
||||||
func LogWorkerPoolError(l *logger.Logger, req string, err error) {
|
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("request", req),
|
||||||
zap.String("error", err.Error()),
|
zap.String("error", err.Error()),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue