Skip to content

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

Closed
kunalchhabra37 wants to merge 1 commit intomatrix-org:mainfrom
kunalchhabra37:kunalchhabra37/logingContextError
Closed

Fix "LoggingContext must be given either a name or a parent context" error#74
kunalchhabra37 wants to merge 1 commit intomatrix-org:mainfrom
kunalchhabra37:kunalchhabra37/logingContextError

Conversation

@kunalchhabra37
Copy link
Copy Markdown

@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 thread s3_storage_provider.py
Comment on lines +269 to +271
parent_logcontext = current_context()
with LoggingContext(parent_context=parent_logcontext):
logger.info("Responder For S3")
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@anoadragon453
Copy link
Copy Markdown
Member

Superseded by #134

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

3 participants