-
Notifications
You must be signed in to change notification settings - Fork 283
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 reset notifier on rails initialize #168
Conversation
@nikolai-b thanks for the PR, it looks great. But I'd like to know exactly the behaviour you are having and the expected behaviour. This fix solves the problem only for Rails apps, but not for ruby applications. If you detail more the problem we can find a solution for all the use cases. |
The problem is when Yep, this probably should be done somewhere like in the require hooks instead. |
Nikolai, we'll take a look into this soon. Thank you for the PR and find the bug :-D. On Tue, Nov 11, 2014 at 4:49 PM, Nikolai notifications@github.com wrote:
Jon |
Sorry, realized my comment above wasn't clear so I'll try again 😄 So you overloaded threads to create a new notifier but if |
@nikolai-b I've tried to reproduce the problem you are having, without success. I've executed Could you please provide us a full example of use? If you execute |
Its in the spec, let me know if that doesn't help |
@nikolai-b I've reproduced the error :-D. Well, in order to fix this for all ruby apps probably we'll need to require our Thread extension once Rollbar is configured. I'll make a fix for this soon. Thanks for the bug report @nikolai-b, it's been really appreciated. |
@nikolai-b I've used some ideas from you in #170, take a look if you want. I think we can close this PR then. |
yes, nice, sorry mine was a little rough, ran out of time |
Thanks again for finding and debugging this, @nikolai-b. The fix for this (#170) will go out in the next release (1.2.8). |
Released in 1.2.8 |
Hi,
If an initializer calls
Thread.new
before Rollbar is initialized then the notifier doesn't clone the correct configuration. I've added a spec which can be called usingRESET=1 rake spec
because in the spec helper is calling
Rollbar.reset_notifier!
already.