-   Notifications  
You must be signed in to change notification settings  - Fork 163
 
Closed
Labels
api: clouddebuggerIssues related to the Stackdriver Debugger API.Issues related to the Stackdriver Debugger API.api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.
Description
When I use download_as_string() method or similar, logging.root logger is being activated by calling logging.info() on line
 
python-storage/google/cloud/storage/blob.py
Line 926 in 63ff233
| logging.info(msg) | 
Environment details
- OS type and version: ubuntu 20.04
 - Python version: 
3.8.6 - pip version: 
20.2.4 google-cloud-storageversion:1.33.0
Steps to reproduce
- set up your own logger for any logger
 - call 
logger.info("test")(nothing should happen) - run Client.from_service_account_json().get_bucket(...).blob(..., chunk_size=1024*1024).download_as_string()
 - call 
logger.info("test")one more time - log in basic format should appear on stdout (unexpected)
 
How to fix it
you need to use your own logger (e.g. using logging.getLogger(__name__) instead of root logger.
jacek-jablonski and mbielecki3
Metadata
Metadata
Assignees
Labels
api: clouddebuggerIssues related to the Stackdriver Debugger API.Issues related to the Stackdriver Debugger API.api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.