Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "LoggingContext must be given either a name or a parent context" error #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kunalchhabra37
Copy link

@kunalchhabra37 kunalchhabra37 commented Apr 19, 2022

Fixes #56 LoggingContext must be given either a name or a parent context by adding LoggingContext() and logger.info() with parent context in LoggingContext() at line 269 - 271

Fixed matrix-org#56 Error: LoggingContext must be given either a name or a parent context by adding LoggingContext() and logger.info() with parent context in LoggingContext() at line 269 - 271
@kunalchhabra37 kunalchhabra37 requested a review from a team as a code owner April 19, 2022 08:18
@clokep clokep changed the title Fixed Issue #56 Fix "LoggingContext must be given either a name or a parent context" error Apr 19, 2022
Comment on lines +269 to +271
parent_logcontext = current_context()
with LoggingContext(parent_context=parent_logcontext):
logger.info("Responder For S3")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what makes you believe this will fix the problem? I don't think it will.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the parent context would solve the issue

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you guide me? @richvdh

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#56 (comment) has some thoughts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: LoggingContext must be given either a name or a parent context
2 participants