From e8c72e6753db8287ef1dcfa824080e1191746c2a Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 28 Mar 2023 12:55:41 -0400 Subject: [PATCH] Not sure if per method logging is worth it, will start from assumption that HTTP logging is enough. --- src/allmydata/storage/http_client.py | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/allmydata/storage/http_client.py b/src/allmydata/storage/http_client.py index 44ba64363..fcfc5bff3 100644 --- a/src/allmydata/storage/http_client.py +++ b/src/allmydata/storage/http_client.py @@ -746,22 +746,18 @@ class StorageClientImmutables(object): """ Return the set of shares for a given storage index. """ - with start_action( - action_type="allmydata:storage:http-client:immutable:list-shares", - storage_index=storage_index, - ) as ctx: - url = self._client.relative_url( - "/storage/v1/immutable/{}/shares".format(_encode_si(storage_index)) - ) - response = yield self._client.request( - "GET", - url, - ) - if response.code == http.OK: - body = yield self._client.decode_cbor(response, _SCHEMAS["list_shares"]) - returnValue(set(body)) - else: - raise ClientException(response.code) + url = self._client.relative_url( + "/storage/v1/immutable/{}/shares".format(_encode_si(storage_index)) + ) + response = yield self._client.request( + "GET", + url, + ) + if response.code == http.OK: + body = yield self._client.decode_cbor(response, _SCHEMAS["list_shares"]) + returnValue(set(body)) + else: + raise ClientException(response.code) def advise_corrupt_share( self,