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

4.1 Backport of LoggerSilence#silence Threadsafety patch (see: PR #20507) #22968

Merged

Conversation

rabbitt
Copy link
Contributor

@rabbitt rabbitt commented Jan 7, 2016

…ls#20507)

- Uses Logger instance defined level if no custom local log level defined
- Keeps track of local log level per logger instance + thread id
- Prevents memory leakage by removing local level hash key/value on #silence method exit
- Test case for threadsafety issue added (and passes with these changes), based @rdubya's tests
- Fixes rails#20490 and supersedes rails#16885
@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @pixeltrix (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 4-1-stable. Please double check that you specified the right target!

@rabbitt
Copy link
Contributor Author

rabbitt commented Jan 7, 2016

@rafaelfranca Here's the PR for the 4.1 backport, with travis all 💚

@rabbitt
Copy link
Contributor Author

rabbitt commented Jan 11, 2016

@rafaelfranca how does the process differ on backports compared to mainline PR's ? Is there anything else I need to do to move this forward?

@maclover7
Copy link
Contributor

Not sure if we are still backporting patches to 4-1-stable...

r? @rafaelfranca

@rails-bot rails-bot assigned rafaelfranca and unassigned pixeltrix Jan 11, 2016
rafaelfranca added a commit that referenced this pull request Jan 15, 2016
…fety

4.1 Backport of LoggerSilence#silence Threadsafety patch (see: PR #20507)
@rafaelfranca rafaelfranca merged commit a96c723 into rails:4-1-stable Jan 15, 2016
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.

None yet

5 participants