René's URL Explorer Experiment


Title: logging.info() triggers basicConfig() · Issue #332 · googleapis/python-storage · GitHub

Open Graph Title: logging.info() triggers basicConfig() · Issue #332 · googleapis/python-storage

X Title: logging.info() triggers basicConfig() · Issue #332 · googleapis/python-storage

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) . It causes other loggers to be...

Open Graph 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.i...

X 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.i...

Opengraph URL: https://github.com/googleapis/python-storage/issues/332

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"logging.info() triggers basicConfig()","articleBody":"When I use `download_as_string()` method or similar, `logging.root` logger is being activated by calling `logging.info()` on line \r\nhttps://github.com/googleapis/python-storage/blob/63ff23387f5873c609490be8e58d69ba34a10a5e/google/cloud/storage/blob.py#L926. It causes other loggers to be logged by the root logger which is unexpected as some apps require a single logger in strict format.\r\n\r\n#### Environment details\r\n\r\n  - OS type and version: ubuntu 20.04\r\n  - Python version: `3.8.6`\r\n  - pip version: `20.2.4`\r\n  - `google-cloud-storage` version: `1.33.0`\r\n\r\n#### Steps to reproduce\r\n\r\n  1. set up your own logger for any logger\r\n  2. call `logger.info(\"test\")` (nothing should happen)\r\n  3. run Client.from_service_account_json().get_bucket(...).blob(..., chunk_size=1024*1024).download_as_string()\r\n  4. call `logger.info(\"test\")` one more time\r\n  5. log in basic format should appear on stdout (unexpected)\r\n\r\n### How to fix it ###\r\nyou need to use your own logger (e.g. using `logging.getLogger(__name__)` instead of root logger.","author":{"url":"https://github.com/kamilglod","@type":"Person","name":"kamilglod"},"datePublished":"2020-12-01T14:41:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/332/python-storage/issues/332"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:502ca1f3-6b02-c609-1ef6-e6e279d798be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA54C:30372D:11C8A1:1A5B8C:6A4DFC68
html-safe-nonce9fac301621ea11cc4c36e53c1d134cf767496ee577d268a4ad38d45056b6bd35
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTRDOjMwMzcyRDoxMUM4QTE6MUE1QjhDOjZBNERGQzY4IiwidmlzaXRvcl9pZCI6IjUyMTU4MzE0MTAxNDk4MTc0NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8647b00f9fb45647db4e98df324406095ba5a597f4631378572f253b292c0947
hovercard-subject-tagissue:754454384
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-storage/332/issue_layout
twitter:imagehttps://opengraph.githubassets.com/92e7eade33b973450a1fa2a9751235de3f7a4db5dc226b79830ef858f87d081f/googleapis/python-storage/issues/332
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/92e7eade33b973450a1fa2a9751235de3f7a4db5dc226b79830ef858f87d081f/googleapis/python-storage/issues/332
og:image:altWhen 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.i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekamilglod
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-storage git https://github.com/googleapis/python-storage.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992639
octolytics-dimension-repository_nwogoogleapis/python-storage
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992639
octolytics-dimension-repository_network_root_nwogoogleapis/python-storage
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4314b1df11fa8a565684f3a72dc971e3785da365
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-storage/issues/332#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-storage%2Fissues%2F332
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-storage%2Fissues%2F332
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-storage
Reloadhttps://github.com/googleapis/python-storage/issues/332
Reloadhttps://github.com/googleapis/python-storage/issues/332
Reloadhttps://github.com/googleapis/python-storage/issues/332
Please reload this pagehttps://github.com/googleapis/python-storage/issues/332
googleapis https://github.com/googleapis
python-storagehttps://github.com/googleapis/python-storage
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-storage
Fork 172 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-storage
Star 502 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-storage
Code https://github.com/googleapis/python-storage
Issues 0 https://github.com/googleapis/python-storage/issues
Pull requests 0 https://github.com/googleapis/python-storage/pulls
Actions https://github.com/googleapis/python-storage/actions
Projects https://github.com/googleapis/python-storage/projects
Security and quality 0 https://github.com/googleapis/python-storage/security
Insights https://github.com/googleapis/python-storage/pulse
Code https://github.com/googleapis/python-storage
Issues https://github.com/googleapis/python-storage/issues
Pull requests https://github.com/googleapis/python-storage/pulls
Actions https://github.com/googleapis/python-storage/actions
Projects https://github.com/googleapis/python-storage/projects
Security and quality https://github.com/googleapis/python-storage/security
Insights https://github.com/googleapis/python-storage/pulse
#333https://github.com/googleapis/python-storage/pull/333
logging.info() triggers basicConfig()https://github.com/googleapis/python-storage/issues/332#top
#333https://github.com/googleapis/python-storage/pull/333
https://github.com/tseaver
api: clouddebuggerIssues related to the Stackdriver Debugger API.https://github.com/googleapis/python-storage/issues?q=state%3Aopen%20label%3A%22api%3A%20clouddebugger%22
api: storageIssues related to the googleapis/python-storage API.https://github.com/googleapis/python-storage/issues?q=state%3Aopen%20label%3A%22api%3A%20storage%22
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.https://github.com/googleapis/python-storage/issues?q=state%3Aopen%20label%3A%22priority%3A%20p1%22
https://github.com/kamilglod
kamilglodhttps://github.com/kamilglod
on Dec 1, 2020https://github.com/googleapis/python-storage/issues/332#issue-754454384
python-storage/google/cloud/storage/blob.pyhttps://github.com/googleapis/python-storage/blob/63ff23387f5873c609490be8e58d69ba34a10a5e/google/cloud/storage/blob.py#L926
63ff233https://github.com/googleapis/python-storage/commit/63ff23387f5873c609490be8e58d69ba34a10a5e
tseaverhttps://github.com/tseaver
api: clouddebuggerIssues related to the Stackdriver Debugger API.https://github.com/googleapis/python-storage/issues?q=state%3Aopen%20label%3A%22api%3A%20clouddebugger%22
api: storageIssues related to the googleapis/python-storage API.https://github.com/googleapis/python-storage/issues?q=state%3Aopen%20label%3A%22api%3A%20storage%22
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.https://github.com/googleapis/python-storage/issues?q=state%3Aopen%20label%3A%22priority%3A%20p1%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.