Skip to content

Commit

Permalink
node/object/get: improve remote calls logging
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Aug 7, 2024
1 parent c72937c commit 4c89fef
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/services/object/get/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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:
Expand Down

0 comments on commit 4c89fef

Please sign in to comment.