[#882] policer: add CID to the error message

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-07 18:09:58 +03:00 committed by Leonard Lyubich
parent 4912cdaaca
commit b8ba677c85

View file

@ -15,6 +15,7 @@ func (p *Policer) processObject(ctx context.Context, addr *object.Address) {
cnr, err := p.cnrSrc.Get(addr.ContainerID())
if err != nil {
p.log.Error("could not get container",
zap.Stringer("cid", addr.ContainerID()),
zap.String("error", err.Error()),
)