René's URL Explorer Experiment


Title: Make logging.basicConfig conditional by GjjvdBurg · Pull Request #670 · python-escpos/python-escpos · GitHub

Open Graph Title: Make logging.basicConfig conditional by GjjvdBurg · Pull Request #670 · python-escpos/python-escpos

X Title: Make logging.basicConfig conditional by GjjvdBurg · Pull Request #670 · python-escpos/python-escpos

Description: Hi there, thank you so much for this library, I'm having a lot of fun with it! Description I wrote a wrapper script using this library in which I'm using the logging module, and I'm noticing that all my log messages are duplicated. I found this comment in issue #559 which mentions the same thing and identifies the root cause to be the logging.basicConfig call in capabilities.py. So this PR places that call behind an environment variable, so it can still be enabled for debugging but is no longer enabled by default. I also found this section of the Python docs describing logging from a library, which seems to correspond with this change. Tested with Tested with my wrapper script and this branch. With the change I made the log messages are no longer duplicated. Thanks in advance for taking a look!

Open Graph Description: Hi there, thank you so much for this library, I'm having a lot of fun with it! Description I wrote a wrapper script using this library in which I'm using the logging module, and I'm not...

X Description: Hi there, thank you so much for this library, I'm having a lot of fun with it! Description I wrote a wrapper script using this library in which I'm using the logging module, and I&a...

Opengraph URL: https://github.com/python-escpos/python-escpos/pull/670

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c735d7ef-d98c-bc28-d11c-5d56d04c448a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F00:633B1:4DC94A6:6D027F6:6A4F8A72
html-safe-nonce970200feea062727d3cadd2ceb90d56872745dada9bfb5076a681f5fccc8f2e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjAwOjYzM0IxOjREQzk0QTY6NkQwMjdGNjo2QTRGOEE3MiIsInZpc2l0b3JfaWQiOiI4ODA5NTM0MzU2MDcyNjYzNjY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac354e691b126c9a545f08c23ee9c20a8d853128dcdfd1dfaa619760657d4eb74a
hovercard-subject-tagpull_request:2260920582
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-escpos/python-escpos/pull/670/files
twitter:imagehttps://avatars.githubusercontent.com/u/3286696?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3286696?s=400&v=4
og:image:altHi there, thank you so much for this library, I'm having a lot of fun with it! Description I wrote a wrapper script using this library in which I'm using the logging module, and I'm not...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git
octolytics-dimension-user_id16302939
octolytics-dimension-user_loginpython-escpos
octolytics-dimension-repository_id32363483
octolytics-dimension-repository_nwopython-escpos/python-escpos
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id32363483
octolytics-dimension-repository_network_root_nwopython-escpos/python-escpos
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-escpos/python-escpos/pull/670/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-escpos%2Fpython-escpos%2Fpull%2F670%2Ffiles
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2Fpython-escpos%2Fpython-escpos%2Fpull%2F670%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-escpos%2Fpython-escpos
Reloadhttps://github.com/python-escpos/python-escpos/pull/670/files
Reloadhttps://github.com/python-escpos/python-escpos/pull/670/files
Reloadhttps://github.com/python-escpos/python-escpos/pull/670/files
Please reload this pagehttps://github.com/python-escpos/python-escpos/pull/670/files
python-escpos https://github.com/python-escpos
python-escposhttps://github.com/python-escpos/python-escpos
Notifications https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos
Fork 312 https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos
Star 1.3k https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos
Code https://github.com/python-escpos/python-escpos
Issues 63 https://github.com/python-escpos/python-escpos/issues
Pull requests 24 https://github.com/python-escpos/python-escpos/pulls
Discussions https://github.com/python-escpos/python-escpos/discussions
Actions https://github.com/python-escpos/python-escpos/actions
Projects https://github.com/python-escpos/python-escpos/projects
Security and quality 0 https://github.com/python-escpos/python-escpos/security
Insights https://github.com/python-escpos/python-escpos/pulse
Code https://github.com/python-escpos/python-escpos
Issues https://github.com/python-escpos/python-escpos/issues
Pull requests https://github.com/python-escpos/python-escpos/pulls
Discussions https://github.com/python-escpos/python-escpos/discussions
Actions https://github.com/python-escpos/python-escpos/actions
Projects https://github.com/python-escpos/python-escpos/projects
Security and quality https://github.com/python-escpos/python-escpos/security
Insights https://github.com/python-escpos/python-escpos/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-escpos%2Fpython-escpos%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos%2Fissues%2Fnew%2Fchoose
patkanhttps://github.com/patkan
python-escpos:masterhttps://github.com/python-escpos/python-escpos/tree/master
GjjvdBurg:move_logging_confighttps://github.com/GjjvdBurg/python-escpos/tree/move_logging_config
Conversation 1 https://github.com/python-escpos/python-escpos/pull/670
Commits 3 https://github.com/python-escpos/python-escpos/pull/670/commits
Checks 13 https://github.com/python-escpos/python-escpos/pull/670/checks
Files changed 1 https://github.com/python-escpos/python-escpos/pull/670/files
Make logging.basicConfig conditional https://github.com/python-escpos/python-escpos/pull/670/files#top
Show all changes 3 commits https://github.com/python-escpos/python-escpos/pull/670/files
7fd23a6 Make logging.basicConfig conditional GjjvdBurg Jan 5, 2025 https://github.com/python-escpos/python-escpos/pull/670/commits/7fd23a60f6341e8d76761d30fe4d710049e036c8
7b36f83 Merge branch 'master' into move_logging_config patkan Aug 24, 2025 https://github.com/python-escpos/python-escpos/pull/670/commits/7b36f833405a58d40eda0034ed9e0a17ab33dcde
dcaccae Merge branch 'master' into move_logging_config patkan Aug 24, 2025 https://github.com/python-escpos/python-escpos/pull/670/commits/dcaccae2443fe0fc838960b1bb7c37a9403b3849
Clear filters https://github.com/python-escpos/python-escpos/pull/670/files
Please reload this pagehttps://github.com/python-escpos/python-escpos/pull/670/files
Please reload this pagehttps://github.com/python-escpos/python-escpos/pull/670/files
src/escpos/capabilities.pyhttps://github.com/python-escpos/python-escpos/pull/670/files#diff-1b15cb89346b3c4180e2d56e5922aa338cb593ff082ec1bcaca3a7452e8c94fa
View file https://github.com/GjjvdBurg/python-escpos/blob/dcaccae2443fe0fc838960b1bb7c37a9403b3849/src/escpos/capabilities.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-escpos/python-escpos/pull/670/{{ revealButtonHref }}
https://github.com/python-escpos/python-escpos/pull/670/files#diff-1b15cb89346b3c4180e2d56e5922aa338cb593ff082ec1bcaca3a7452e8c94fa
https://github.com/python-escpos/python-escpos/pull/670/files#diff-1b15cb89346b3c4180e2d56e5922aa338cb593ff082ec1bcaca3a7452e8c94fa
Please reload this pagehttps://github.com/python-escpos/python-escpos/pull/670/files
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.