[#1230] replicator: Improve error log

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-10 19:13:44 +03:00 committed by LeL
parent 14ea7b2c47
commit e38d7dda6b

View file

@ -52,7 +52,9 @@ func (p *Replicator) HandleTask(ctx context.Context, task *Task) {
obj, err := engine.Get(p.localStorage, task.addr) obj, err := engine.Get(p.localStorage, task.addr)
if err != nil { if err != nil {
p.log.Error("could not get object from local storage") p.log.Error("could not get object from local storage",
zap.Stringer("object", task.addr),
zap.Error(err))
return return
} }