From 0adb29c03519acd96eeaaf2a419f5ce206d0584b Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 15 Mar 2022 18:28:39 +0300 Subject: [PATCH] [#1214] Fix metabase put logging Signed-off-by: Alex Vanin --- pkg/local_object_storage/metabase/put.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/local_object_storage/metabase/put.go b/pkg/local_object_storage/metabase/put.go index c39f03f50..1467ed954 100644 --- a/pkg/local_object_storage/metabase/put.go +++ b/pkg/local_object_storage/metabase/put.go @@ -6,6 +6,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/io" "github.com/nspcc-dev/neofs-node/pkg/core/object" + objectCore "github.com/nspcc-dev/neofs-node/pkg/core/object" "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobovnicza" storagelog "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/internal/log" "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/util" @@ -72,7 +73,7 @@ func (db *DB) Put(prm *PutPrm) (res *PutRes, err error) { }) if err == nil { storagelog.Write(db.log, - storagelog.AddressField(prm.obj), + storagelog.AddressField(objectCore.AddressOf(prm.obj)), storagelog.OpField("metabase PUT")) }