Skip to content

Provide a solution to turn off error logging  #687

Open

Description

@northtyphoon

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

Activity

  1. changed the title [-]Disable error logging [/-] [+]Provide a solution to turn off error logging [/+] on Mar 9, 2021
  2. frankShih commented on Apr 9, 2021

    @frankShih

    really need this !!!

  3. xiafu-msft commented on Apr 15, 2021

    @xiafu-msft
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions