question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

blob storage logging integration problem

See original GitHub issue
  • Package Name: azure-storage-blob
  • Package Version: 12.5.0
  • Operating System: OSX
  • Python Version: 3.8.6

Describe the bug Integration with the logging framework not fully working. Setting log level as pre docs does not work.

To Reproduce Steps to reproduce the behavior:

  1. use example from docs https://azuresdkdocs.blob.core.windows.net/$web/python/azure-storage-blob/12.6.0/index.html#logging
  2. set WARNING log level, i.e. use logger.setLevel(logging.WARNING)

Expected behavior The log should be squashed., instead still get the same log.

Additional context In general I would expect any storage client to accept a log level parameter and let the client set the logger for me. But I see your approach is quite common and it is fair. However, I think because the actual logging happens in a different module, one has to get a logger for that module or for the whole azure module, which seems to me quite too much.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xiafu-msftcommented, Jan 5, 2021

sorry for the late response because of the vacation! We will try to reproduce it and get back to you ASAP!

0reactions
andrea-cassioli-maerskcommented, Jan 11, 2021

Well, it seems I cannot reproduce anymore. Most likely I messed up some versions I guess!

So sorry for the fuss. Thanks for having looked into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable and manage Azure Storage Analytics logs (classic)
Azure Storage Analytics provides logs for blobs, queues, and tables. ... The $logs container isn't integrated with Event Grid, ...
Read more >
Troubleshoot Azure Blob Storage Log Collection
Make sure that the resources you created in the Collect Logs from Azure Blob Storage procedure were successfully created. Go to Resource groups,...
Read more >
Ensure Azure storage account logging for blobs is enabled
Storage Logging happens server-side and allows details for both successful and failed requests to be recorded in the storage account. These logs allow...
Read more >
Azure Blob Storage Input | Filebeat Reference [master] - Elastic
If any major error occurs which stops the main thread, the logs will be appropriately generated, describing said error. NOTE: Currently only JSON...
Read more >
Azure functions log to blobstorage - Stack Overflow
I need to store the logs on blobstorage as txt file or similar. Is there a better integrated way to do it via...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found