From 07ec51ea60c7be5725cb12f80f2d73ee71c350d3 Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Tue, 7 Feb 2023 16:40:07 +0300
Subject: [PATCH] [#2244] node: Add object address to WC's operations
Signed-off-by: Pavel Karpy
---
pkg/local_object_storage/shard/get.go | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/pkg/local_object_storage/shard/get.go b/pkg/local_object_storage/shard/get.go
index 4f00995c..607d508d 100644
--- a/pkg/local_object_storage/shard/get.go
+++ b/pkg/local_object_storage/shard/get.go
@@ -121,9 +121,14 @@ func (s *Shard) fetchObjectData(addr oid.Address, skipMeta bool, cb storFetcher,
}
if IsErrNotFound(err) {
- s.log.Debug("object is missing in write-cache")
+ s.log.Debug("object is missing in write-cache",
+ zap.Stringer("addr", addr),
+ zap.Bool("skip_meta", skipMeta))
} else {
- s.log.Error("failed to fetch object from write-cache", zap.Error(err))
+ s.log.Error("failed to fetch object from write-cache",
+ zap.Error(err),
+ zap.Stringer("addr", addr),
+ zap.Bool("skip_meta", skipMeta))
}
}