From dd31b28ab7d19767b02f53dccf5f62e6a848afbd Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 14 Jul 2020 16:12:30 +0300 Subject: [PATCH] Add logging to ObjectLayer.ListBuckets --- neofs/layer/neofs-container.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neofs/layer/neofs-container.go b/neofs/layer/neofs-container.go index bb37d105..e6a60bb3 100644 --- a/neofs/layer/neofs-container.go +++ b/neofs/layer/neofs-container.go @@ -4,6 +4,8 @@ import ( "context" "time" + "go.uber.org/zap" + "github.com/nspcc-dev/neofs-api-go/container" "github.com/nspcc-dev/neofs-api-go/refs" "github.com/nspcc-dev/neofs-api-go/service" @@ -17,11 +19,15 @@ func (n *neofsObject) containerList(ctx context.Context) ([]refs.CID, error) { err := service.SignRequestData(n.key, req) if err != nil { + n.log.Error("could not prepare request", + zap.Error(err)) return nil, err } conn, err := n.cli.GetConnection(ctx) if err != nil { + n.log.Error("could not prepare client", + zap.Error(err)) return nil, err } @@ -31,6 +37,8 @@ func (n *neofsObject) containerList(ctx context.Context) ([]refs.CID, error) { res, err := container.NewServiceClient(conn).List(ctx, req) if err != nil { + n.log.Error("could not list buckets", + zap.Error(err)) return nil, err }