Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a solution to turn off error logging #687

Open
northtyphoon opened this issue Mar 9, 2021 · 2 comments
Open

Provide a solution to turn off error logging #687

northtyphoon opened this issue Mar 9, 2021 · 2 comments

Comments

@northtyphoon
Copy link
Member

Which service(blob, file, queue) does this issue concern?

blob

Which version of the SDK was used? Please provide the output of pip freeze.

the sdk integrated in latest azure cli

What problem was encountered?

the following code always writes a message to stderr in azure cli. need a way to disable it as it pollutes the cli output for legitimate cases.

https://github.com/Azure/azure-storage-python/blob/master/azure-storage-common/azure/storage/common/storageclient.py#L440

Have you found a mitigation/solution?

no

Azure/azure-cli#16700

@northtyphoon northtyphoon changed the title Disable error logging Provide a solution to turn off error logging Mar 9, 2021
@frankShih
Copy link

really need this !!!

@xiafu-msft
Copy link
Contributor

xiafu-msft commented Apr 15, 2021

You can take this as reference to disable logger named azure.storage https://github.com/Azure/azure-storage-python/blob/master/tests/testcase.py#L99
remember to get a logger instance like this before disable it https://github.com/Azure/azure-storage-python/blob/master/tests/testcase.py#L84

Let me know if it doesn’t work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants