Skip to content

Conversation

@shawkinsmezmo
Copy link
Contributor

The base logging.Handler class has it's own instance variable named self.lock. This variable is used to lock access to a given handler.

The current variable naming was overriding this lock, leading to deadlocks that would occur when the logging framework would attempt to acquire the base handler lock for configuration purposes, which would then cause any attempts by the logdna handler to acquire this lock to block indefinitely.

This PR addresses this issue by renaming the internal lock variable, ensuring that it remains logically distinct as it was intended.

@shawkinsmezmo shawkinsmezmo self-assigned this Jul 27, 2023
dkhokhlov
dkhokhlov previously approved these changes Jul 27, 2023
Copy link
Contributor

@dkhokhlov dkhokhlov left a comment

Choose a reason for hiding this comment

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

nice catch!
lgtm

@shawkinsmezmo shawkinsmezmo merged commit 5b04d72 into master Jul 27, 2023
@shawkinsmezmo shawkinsmezmo deleted the usr/shawkins/fix-var-shadowing branch July 27, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants