From 4c89fef01b803257865e598f694c5b998f6ad07d Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 6 Aug 2024 18:45:24 +0300 Subject: [PATCH] node/object/get: improve remote calls logging Signed-off-by: Pavel Karpy --- pkg/services/object/get/remote.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/services/object/get/remote.go b/pkg/services/object/get/remote.go index 8e0a815012..2cadb23976 100644 --- a/pkg/services/object/get/remote.go +++ b/pkg/services/object/get/remote.go @@ -10,7 +10,12 @@ import ( ) func (exec *execCtx) processNode(info client.NodeInfo) bool { - exec.log.Debug("processing node...") + l := exec.log.With( + zap.Stringers("address group", info.AddressGroup()), + zap.Stringers("external address group", info.ExternalAddressGroup()), + ) + + l.Debug("processing node...") client, ok := exec.remoteClient(info) if !ok { @@ -26,7 +31,7 @@ func (exec *execCtx) processNode(info client.NodeInfo) bool { exec.status = statusUndefined exec.err = apistatus.ErrObjectNotFound - exec.log.Debug("remote call failed", + l.Debug("remote call failed", zap.String("error", err.Error()), ) case err == nil: