René's URL Explorer Experiment


Title: logger.propagate=False issue · Issue #1 · ZooliteEU/lambda-python-logging-example · GitHub

Open Graph Title: logger.propagate=False issue · Issue #1 · ZooliteEU/lambda-python-logging-example

X Title: logger.propagate=False issue · Issue #1 · ZooliteEU/lambda-python-logging-example

Description: Hello, I am pretty new to learning Python and I am trying to set up JSON formatting for Lambda Python function. I came across your blog/repo and it's very helpful (thank you!). However, I am running into an issue. I am using your custom_...

Open Graph Description: Hello, I am pretty new to learning Python and I am trying to set up JSON formatting for Lambda Python function. I came across your blog/repo and it's very helpful (thank you!). However, I am runnin...

X Description: Hello, I am pretty new to learning Python and I am trying to set up JSON formatting for Lambda Python function. I came across your blog/repo and it's very helpful (thank you!). However, I am ru...

Opengraph URL: https://github.com/ZooliteEU/lambda-python-logging-example/issues/1

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"logger.propagate=False issue","articleBody":"Hello,\r\n\r\nI am pretty new to learning Python and I am trying to set up JSON formatting for Lambda Python function. I came across your blog/repo and it's very helpful (thank you!). \r\n\r\nHowever, I am running into an issue. I am using your custom_logger.py. I get the JSON formatted error with the error message being correct. But, the CloudWatch logs also show the usual Lambda error \"[ERROR] ClientError: An error occurred (404) when calling the HeadObject operation...\" even though the logger.propagate=False is set in the custom_logger.  I did check if the property is being set up correctly (by printing it to logs), and it is indeed set as false.\r\n\r\nAny ideas?\r\n\r\nI set up LOGGER as:\r\n\r\n```\r\n# Setup logging\r\nFUNCTION_NAME = {\"function\": os.getenv(\"AWS_LAMBDA_FUNCTION_NAME\")}\r\nLOGGER, ADAPTER = custom_logger.setup_logger(FUNCTION_NAME)\r\n```\r\n\r\nFunction that throws the error:\r\n\r\n```\r\ndef aws_s3_read(bucket_name, object_key):\r\n   \r\n    client = boto3.client('s3', region_name = 'ca-central-1')\r\n    tmpkey = object_key.replace('/', '')\r\n    download_path = '/tmp/{}'.format(tmpkey)\r\n    \r\n    try:\r\n        client.download_file(bucket_name, object_key, download_path)\r\n    except ClientError as err:\r\n        LOGGER.error(err.response['Error']['Code'] + \" \" + err.response['Error']['Message'])\r\n        raise err\r\n    finally:\r\n        # Optionally do something to be executed regardless if the try block raises an error or not\r\n        LOGGER.info(\"FINAL BLOCK\")\r\n       \r\n    LOGGER.info(\"Downloaded object \" + object_key + \" from S3 bucket \" + bucket_name + \" into file \" + download_path)\r\n    return\r\n```","author":{"url":"https://github.com/borkod","@type":"Person","name":"borkod"},"datePublished":"2021-01-30T14:31:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1/lambda-python-logging-example/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e3cda461-62c3-4131-c4ff-8c1d9c7c0ec4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF60:3CBD01:6202B5:847199:6A56987F
html-safe-nonced3a848b56d81faa1a3d65077ae6e0ee52a3bc49c441cb9b33adcfb442d4cab74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjYwOjNDQkQwMTo2MjAyQjU6ODQ3MTk5OjZBNTY5ODdGIiwidmlzaXRvcl9pZCI6IjEwMDgzMjc0MzM3NTY1MTQ0MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9947dbfac9d4f46174a6eda0588e1092da134056f343933facd99bd5647744f7
hovercard-subject-tagissue:797433082
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/ZooliteEU/lambda-python-logging-example/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1679ffe10f4bb0cece92e56628feea142eb163add405572830324323f2c274fe/ZooliteEU/lambda-python-logging-example/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1679ffe10f4bb0cece92e56628feea142eb163add405572830324323f2c274fe/ZooliteEU/lambda-python-logging-example/issues/1
og:image:altHello, I am pretty new to learning Python and I am trying to set up JSON formatting for Lambda Python function. I came across your blog/repo and it's very helpful (thank you!). However, I am runnin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameborkod
hostnamegithub.com
expected-hostnamegithub.com
None647a25f437e2f54eccdd162bd007c8ae70f4235c4125dba0f4518747cc8b9615
turbo-cache-controlno-preview
go-importgithub.com/ZooliteEU/lambda-python-logging-example git https://github.com/ZooliteEU/lambda-python-logging-example.git
octolytics-dimension-user_id45125744
octolytics-dimension-user_loginZooliteEU
octolytics-dimension-repository_id230512637
octolytics-dimension-repository_nwoZooliteEU/lambda-python-logging-example
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id230512637
octolytics-dimension-repository_network_root_nwoZooliteEU/lambda-python-logging-example
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
release05adb86a60ce3d701e556eded3ab26300ec6bcc4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ZooliteEU/lambda-python-logging-example/issues/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FZooliteEU%2Flambda-python-logging-example%2Fissues%2F1
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%2FZooliteEU%2Flambda-python-logging-example%2Fissues%2F1
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=ZooliteEU%2Flambda-python-logging-example
Reloadhttps://github.com/ZooliteEU/lambda-python-logging-example/issues/1
Reloadhttps://github.com/ZooliteEU/lambda-python-logging-example/issues/1
Reloadhttps://github.com/ZooliteEU/lambda-python-logging-example/issues/1
Please reload this pagehttps://github.com/ZooliteEU/lambda-python-logging-example/issues/1
ZooliteEU https://github.com/ZooliteEU
lambda-python-logging-examplehttps://github.com/ZooliteEU/lambda-python-logging-example
Notifications https://github.com/login?return_to=%2FZooliteEU%2Flambda-python-logging-example
Fork 0 https://github.com/login?return_to=%2FZooliteEU%2Flambda-python-logging-example
Star 1 https://github.com/login?return_to=%2FZooliteEU%2Flambda-python-logging-example
Code https://github.com/ZooliteEU/lambda-python-logging-example
Issues 1 https://github.com/ZooliteEU/lambda-python-logging-example/issues
Pull requests 0 https://github.com/ZooliteEU/lambda-python-logging-example/pulls
Actions https://github.com/ZooliteEU/lambda-python-logging-example/actions
Projects https://github.com/ZooliteEU/lambda-python-logging-example/projects
Security and quality 0 https://github.com/ZooliteEU/lambda-python-logging-example/security
Insights https://github.com/ZooliteEU/lambda-python-logging-example/pulse
Code https://github.com/ZooliteEU/lambda-python-logging-example
Issues https://github.com/ZooliteEU/lambda-python-logging-example/issues
Pull requests https://github.com/ZooliteEU/lambda-python-logging-example/pulls
Actions https://github.com/ZooliteEU/lambda-python-logging-example/actions
Projects https://github.com/ZooliteEU/lambda-python-logging-example/projects
Security and quality https://github.com/ZooliteEU/lambda-python-logging-example/security
Insights https://github.com/ZooliteEU/lambda-python-logging-example/pulse
logger.propagate=False issuehttps://github.com/ZooliteEU/lambda-python-logging-example/issues/1#top
https://github.com/borkod
borkodhttps://github.com/borkod
on Jan 30, 2021https://github.com/ZooliteEU/lambda-python-logging-example/issues/1#issue-797433082
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.