8000 Remove logging work-around as the issue was fixed in azure-storage 1.3.0 · benjeffery/zarr-python@0e71f70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e71f70

Browse files
committed
Remove logging work-around as the issue was fixed in azure-storage 1.3.0
1 parent e79cb4f commit 0e71f70

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

zarr/storage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,11 +1940,6 @@ def __init__(self, container_name, prefix, account_name, account_key):
19401940
def initialize_container(self):
19411941
from azure.storage.blob import BlockBlobService
19421942
self.client = BlockBlobService(self.account_name, self.account_key)
1943-
# change logging level to deal with https://github.com/Azure/azure-storage-python/issues/437
1944-
# it would be better to set up a logging filter that 8951 throws out just the
1945-
# error logged when calling exists().
1946-
import logging
1947-
logging.basicConfig(level=logging.CRITICAL)
19481943

19491944
# needed for pickling
19501945
def __getstate__(self):
@@ -1996,7 +1991,6 @@ def __len__(self):
19961991
raise NotImplementedError
19971992

19981993
def __contains__(self, key):
1999-
# this is where the logging error occurs. not sure why we are looking for a .zarray below every blob
20001994
blob_name = '/'.join([self.prefix, key])
20011995
if self.client.exists(self.container_name, blob_name):
20021996
return True

0 commit comments

Comments
 (0)
0