Log node public key for get requests #890

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/object_get_log_node_pk into master 2023-12-29 12:15:09 +00:00

View file

@ -2,6 +2,7 @@ package getsvc
import ( import (
"context" "context"
"encoding/hex"
"errors" "errors"
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs" "git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
@ -16,7 +17,7 @@ func (r *request) processNode(ctx context.Context, info client.NodeInfo) bool {
ctx, span := tracing.StartSpanFromContext(ctx, "getService.processNode") ctx, span := tracing.StartSpanFromContext(ctx, "getService.processNode")
defer span.End() defer span.End()
r.log.Debug(logs.ProcessingNode) r.log.Debug(logs.ProcessingNode, zap.String("node_key", hex.EncodeToString(info.PublicKey())))
rs, ok := r.getRemoteStorage(info) rs, ok := r.getRemoteStorage(info)
if !ok { if !ok {