René's URL Explorer Experiment


Title: Disable logging unless code is running in CLI by benthorner · Pull Request #37 · avaldebe/PyPMS · GitHub

Open Graph Title: Disable logging unless code is running in CLI by benthorner · Pull Request #37 · avaldebe/PyPMS

X Title: Disable logging unless code is running in CLI by benthorner · Pull Request #37 · avaldebe/PyPMS

Description: Data acquisition and logging for Air Quality Sensors with UART interface - Disable logging unless code is running in CLI by benthorner · Pull Request #37 · avaldebe/PyPMS

Open Graph Description: Fixes regression from 1. Previously this repo used Python's inbuilt logger, which does not emit INFO or DEBUG logs by default. loguru emits all logs by default. This fixes that by disabling log...

X Description: Fixes regression from 1. Previously this repo used Python's inbuilt logger, which does not emit INFO or DEBUG logs by default. loguru emits all logs by default. This fixes that by disabling...

Opengraph URL: https://github.com/avaldebe/PyPMS/pull/37

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:be31ef87-fa1b-b9be-4e82-afaf12197bb4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF7C:349E72:2379E3C:3376ABB:6A4BE232
html-safe-nonce36a3f40c40c5fc5bc8043d5a654cacfb3bcd5039ac3e8f1c257bc02778d2331a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjdDOjM0OUU3MjoyMzc5RTNDOjMzNzZBQkI6NkE0QkUyMzIiLCJ2aXNpdG9yX2lkIjoiNTc2MTcwMTIzNjQxMjUwNjY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac226a296757b5264a03f6fcac77886bd1e48c45978305e8f75ef4360360fe4dc7
hovercard-subject-tagpull_request:1157712809
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/avaldebe/PyPMS/37/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c177be0d764589047b4c0f15df99e91bd15bc0b7b23cb5a12f20a30f738573c4/avaldebe/PyPMS/pull/37
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c177be0d764589047b4c0f15df99e91bd15bc0b7b23cb5a12f20a30f738573c4/avaldebe/PyPMS/pull/37
og:image:altFixes regression from 1. Previously this repo used Python's inbuilt logger, which does not emit INFO or DEBUG logs by default. loguru emits all logs by default. This fixes that by disabling log...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebenthorner
hostnamegithub.com
expected-hostnamegithub.com
None0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2
turbo-cache-controlno-cache
go-importgithub.com/avaldebe/PyPMS git https://github.com/avaldebe/PyPMS.git
octolytics-dimension-user_id8268218
octolytics-dimension-user_loginavaldebe
octolytics-dimension-repository_id203110737
octolytics-dimension-repository_nwoavaldebe/PyPMS
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id203110737
octolytics-dimension-repository_network_root_nwoavaldebe/PyPMS
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
release253920ac2dc35b0849cca4633895f1f2e5f03051
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/avaldebe/PyPMS/pull/37#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Favaldebe%2FPyPMS%2Fpull%2F37
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%2Favaldebe%2FPyPMS%2Fpull%2F37
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=avaldebe%2FPyPMS
Reloadhttps://github.com/avaldebe/PyPMS/pull/37
Reloadhttps://github.com/avaldebe/PyPMS/pull/37
Reloadhttps://github.com/avaldebe/PyPMS/pull/37
avaldebe https://github.com/avaldebe
PyPMShttps://github.com/avaldebe/PyPMS
Notifications https://github.com/login?return_to=%2Favaldebe%2FPyPMS
Fork 8 https://github.com/login?return_to=%2Favaldebe%2FPyPMS
Star 30 https://github.com/login?return_to=%2Favaldebe%2FPyPMS
Code https://github.com/avaldebe/PyPMS
Issues 1 https://github.com/avaldebe/PyPMS/issues
Pull requests 0 https://github.com/avaldebe/PyPMS/pulls
Actions https://github.com/avaldebe/PyPMS/actions
Projects https://github.com/avaldebe/PyPMS/projects
Security and quality 0 https://github.com/avaldebe/PyPMS/security
Insights https://github.com/avaldebe/PyPMS/pulse
Code https://github.com/avaldebe/PyPMS
Issues https://github.com/avaldebe/PyPMS/issues
Pull requests https://github.com/avaldebe/PyPMS/pulls
Actions https://github.com/avaldebe/PyPMS/actions
Projects https://github.com/avaldebe/PyPMS/projects
Security and quality https://github.com/avaldebe/PyPMS/security
Insights https://github.com/avaldebe/PyPMS/pulse
avaldebehttps://github.com/avaldebe
avaldebe:masterhttps://github.com/avaldebe/PyPMS/tree/master
benthorner:fix-non-cli-logginghttps://github.com/benthorner/PyPMS/tree/fix-non-cli-logging
Conversationhttps://github.com/avaldebe/PyPMS/pull/37
Commits2 (2)https://github.com/avaldebe/PyPMS/pull/37/commits
Checkshttps://github.com/avaldebe/PyPMS/pull/37/checks
Files changedhttps://github.com/avaldebe/PyPMS/pull/37/files
Disable logging unless code is running in CLIhttps://github.com/avaldebe/PyPMS/pull/37#top
avaldebehttps://github.com/avaldebe
avaldebe:masterhttps://github.com/avaldebe/PyPMS/tree/master
benthorner:fix-non-cli-logginghttps://github.com/benthorner/PyPMS/tree/fix-non-cli-logging
https://github.com/benthorner
benthornerhttps://github.com/benthorner
Dec 10, 2022https://github.com/avaldebe/PyPMS/pull/37#issue-1488539837
1https://github.com/avaldebe/PyPMS/pull/37#user-content-fn-1-0cc9d0b586d42f39dd81b7ffc4d4d6b8
https://github.com/avaldebe/PyPMS/commit/ecd0c9d1cd0e88284299fecc6416f5f01cadf10dhttps://github.com/avaldebe/PyPMS/commit/ecd0c9d1cd0e88284299fecc6416f5f01cadf10d
https://github.com/avaldebe/PyPMS/pull/37#user-content-fnref-1-0cc9d0b586d42f39dd81b7ffc4d4d6b8
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
benthornerhttps://github.com/benthorner
December 10, 2022 14:26https://github.com/avaldebe/PyPMS/pull/37#commits-pushed-5fcbbfa
https://github.com/benthorner
Rename "main" typer CLI app to "app"https://github.com/avaldebe/PyPMS/pull/37/commits/5fcbbfa27b0b157766643bc756c84cbfea62df2d
5fcbbfahttps://github.com/avaldebe/PyPMS/pull/37/commits/5fcbbfa27b0b157766643bc756c84cbfea62df2d
https://github.com/benthorner
Disable logging unless code is running in CLIhttps://github.com/avaldebe/PyPMS/pull/37/commits/7a7ed8a9fa6866cb97bff220e147ec220d838a2f
7a7ed8ahttps://github.com/avaldebe/PyPMS/pull/37/commits/7a7ed8a9fa6866cb97bff220e147ec220d838a2f
avaldebe@ecd0c9dhttps://github.com/avaldebe/PyPMS/commit/ecd0c9d1cd0e88284299fecc6416f5f01cadf10d
https://loguru.readthedocs.io/en/stable/resources/migration.html#making-things-work-with-pytest-and-caploghttps://loguru.readthedocs.io/en/stable/resources/migration.html#making-things-work-with-pytest-and-caplog
https://github.com/benthorner
benthornerhttps://github.com/benthorner
force-pushedhttps://github.com/avaldebe/PyPMS/compare/084e84efdead489f08c62fd5387377e16fd2ebf7..7a7ed8a9fa6866cb97bff220e147ec220d838a2f
084e84ehttps://github.com/avaldebe/PyPMS/commit/084e84efdead489f08c62fd5387377e16fd2ebf7
7a7ed8ahttps://github.com/avaldebe/PyPMS/commit/7a7ed8a9fa6866cb97bff220e147ec220d838a2f
Compare https://github.com/avaldebe/PyPMS/compare/084e84efdead489f08c62fd5387377e16fd2ebf7..7a7ed8a9fa6866cb97bff220e147ec220d838a2f
December 10, 2022 14:38https://github.com/avaldebe/PyPMS/pull/37#event-8004893423
https://github.com/benthorner
benthornerhttps://github.com/benthorner
Dec 17, 2022 https://github.com/avaldebe/PyPMS/pull/37#ref-pullrequest-1480441981
Enable pre-heat for PMSx003 sensors #35 https://github.com/avaldebe/PyPMS/pull/35
https://github.com/avaldebe
avaldebehttps://github.com/avaldebe
Jan 3, 2023 https://github.com/avaldebe/PyPMS/pull/37#pullrequestreview-1234208326
View reviewed changes https://github.com/avaldebe/PyPMS/pull/37/files/7a7ed8a9fa6866cb97bff220e147ec220d838a2f
avaldebehttps://github.com/avaldebe
https://github.com/avaldebe/PyPMS/pull/37#pullrequestreview-1234208326
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
src/pms/cli.pyhttps://github.com/avaldebe/PyPMS/pull/37/files/7a7ed8a9fa6866cb97bff220e147ec220d838a2f#diff-d30ab8625e57643fcf5e690b8b4e6760c1dc8f4e2ac664edcf4d500d7337c981
avaldebehttps://github.com/avaldebe
Jan 3, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1060357824
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
benthornerhttps://github.com/benthorner
Jan 7, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1063988212
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
src/pms/__init__.pyhttps://github.com/avaldebe/PyPMS/pull/37/files/7a7ed8a9fa6866cb97bff220e147ec220d838a2f#diff-4eec72e8308dbdb087e2f107b07dab88688092c6a1a7f8c48c121e44321ab0c5
avaldebehttps://github.com/avaldebe
Jan 3, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1060361702
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
benthornerhttps://github.com/benthorner
Jan 7, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1063987993
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
tests/core/reader/test_SensorReader.pyhttps://github.com/avaldebe/PyPMS/pull/37/files/7a7ed8a9fa6866cb97bff220e147ec220d838a2f#diff-3eb850d544dd0f7e7e09033810eb81a25f8b9ea244ac7b57642fa8011cc87e97
avaldebehttps://github.com/avaldebe
Jan 3, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1060364797
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
benthornerhttps://github.com/benthorner
Jan 7, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1063986349
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://loguru.readthedocs.io/en/stable/resources/migration.html#making-things-work-with-pytest-and-caploghttps://loguru.readthedocs.io/en/stable/resources/migration.html#making-things-work-with-pytest-and-caplog
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
src/pms/cli.pyhttps://github.com/avaldebe/PyPMS/pull/37/files/7a7ed8a9fa6866cb97bff220e147ec220d838a2f#diff-d30ab8625e57643fcf5e690b8b4e6760c1dc8f4e2ac664edcf4d500d7337c981
avaldebehttps://github.com/avaldebe
Jan 3, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1060365435
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
benthornerhttps://github.com/benthorner
Jan 7, 2023https://github.com/avaldebe/PyPMS/pull/37#discussion_r1063989293
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
https://github.com/benthorner
benthornerhttps://github.com/benthorner
Jan 7, 2023https://github.com/avaldebe/PyPMS/pull/37#issuecomment-1374437631
@avaldebehttps://github.com/avaldebe
ecd0c9dhttps://github.com/avaldebe/PyPMS/commit/ecd0c9d1cd0e88284299fecc6416f5f01cadf10d
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
https://github.com/avaldebe
avaldebehttps://github.com/avaldebe
Jan 11, 2023https://github.com/avaldebe/PyPMS/pull/37#issuecomment-1378521886
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
https://github.com/avaldebe
avaldebehttps://github.com/avaldebe
0d44ef0https://github.com/avaldebe/PyPMS/commit/0d44ef01055930288a9b39e5daffa3b8205510da
Jan 11, 2023https://github.com/avaldebe/PyPMS/pull/37#event-8200122679
https://github.com/benthorner
benthornerhttps://github.com/benthorner
Jan 12, 2023https://github.com/avaldebe/PyPMS/pull/37#issuecomment-1379931610
@avaldebehttps://github.com/avaldebe
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
https://github.co/hiddenchars
https://github.com/avaldebe/PyPMS/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Favaldebe%2FPyPMS%2Fpull%2F37
https://github.com/avaldebe
avaldebe https://github.com/avaldebe
https://github.com/avaldebe/PyPMS/pull/37/files/7a7ed8a9fa6866cb97bff220e147ec220d838a2f
Please reload this pagehttps://github.com/avaldebe/PyPMS/pull/37
https://github.com/benthorner
https://github.com/avaldebe
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.