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: disable_logging should reset to previous state #1165

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

kaste
Copy link
Collaborator

@kaste kaste commented Sep 24, 2019

The disable_logging context manager sets enabled=True on exit which is obviously not what we want. We need to restore the previous state.

@kaste
Copy link
Collaborator Author

kaste commented Sep 24, 2019

Hm, this code was here since 2938321 and acted like a memory leak for most users. If you run Sublime for a month, _log must grow to thousands of entries. 🤔 Strange...

@kaste
Copy link
Collaborator Author

kaste commented Sep 24, 2019

Note that on my status branch this was fixed because I removed this context manager altogether. (And most of the time I am on my own branch.)

@stoivo stoivo merged commit 98ec5b7 into timbrel:dev Sep 24, 2019
@kaste kaste deleted the fixup-disable-logging branch September 24, 2019 20:21
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.

2 participants