Skip to content

Commit

Permalink
Revert "log"
Browse files Browse the repository at this point in the history
This reverts commit ef711acff86f355ddd347661422a499d94bee716.
  • Loading branch information
xiafu-msft committed Aug 12, 2020
1 parent 46fa8a7 commit 0c6bbcd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions sdk/storage/azure-storage-blob/tests/_shared/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ class StorageTestCase(AzureMgmtTestCase):
def __init__(self, *args, **kwargs):
super(StorageTestCase, self).__init__(*args, **kwargs)
self.replay_processors.append(XMSRequestIDBody())
self.logger = logging.getLogger('azure.storage')
self.configure_logging()

def connection_string(self, account, key):
return "DefaultEndpointsProtocol=https;AccountName=" + account.name + ";AccountKey=" + str(key) + ";EndpointSuffix=core.windows.net"
Expand All @@ -166,7 +164,7 @@ def account_url(self, storage_account, storage_type):

def configure_logging(self):
try:
enable_logging = True
enable_logging = self.get_settings_value("ENABLE_LOGGING")
except AzureTestError:
enable_logging = True # That's the default value in fake settings

Expand All @@ -176,7 +174,7 @@ def enable_logging(self):
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter(LOGGING_FORMAT))
self.logger.handlers = [handler]
self.logger.setLevel(logging.DEBUG)
self.logger.setLevel(logging.INFO)
self.logger.propagate = True
self.logger.disabled = False

Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-blob/tests/test_common_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
class StorageCommonBlobTest(StorageTestCase):

def _setup(self, storage_account, key):
self.bsc = BlobServiceClient(self.account_url(storage_account, "blob"), credential=key, logging_enable=True)
self.bsc = BlobServiceClient(self.account_url(storage_account, "blob"), credential=key)
self.container_name = self.get_resource_name('utcontainer')
if self.is_live:
container = self.bsc.get_container_client(self.container_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class StorageCommonBlobAsyncTest(AsyncStorageTestCase):
# --Helpers-----------------------------------------------------------------

async def _setup(self, storage_account, key):
self.bsc = BlobServiceClient(self.account_url(storage_account, "blob"), credential=key, transport=AiohttpTestTransport(), logging_enable=True)
self.bsc = BlobServiceClient(self.account_url(storage_account, "blob"), credential=key, transport=AiohttpTestTransport())
self.container_name = self.get_resource_name('utcontainer')
self.byte_data = self.get_random_bytes(1024)
if self.is_live:
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-blob/tests/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ def test_standard_blob_tier_set_tier_api_batch(self, resource_group, location, s
@pytest.mark.skipif(sys.version_info < (3, 0), reason="Batch not supported on Python 2.7")
@GlobalStorageAccountPreparer()
def test_batch_set_standard_blob_tier_for_version(self, resource_group, location, storage_account, storage_account_key):
bsc = BlobServiceClient(self.account_url(storage_account, "blob"), storage_account_key, logging_enable=True)
bsc = BlobServiceClient(self.account_url(storage_account, "blob"), storage_account_key)
container = self._create_container(bsc)
tiers = [StandardBlobTier.Archive, StandardBlobTier.Cool, StandardBlobTier.Hot]

Expand Down

0 comments on commit 0c6bbcd

Please sign in to comment.