-
Notifications
You must be signed in to change notification settings - Fork 136
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
Custom fields handling causing unexpected behaviour with devise #114
Comments
Hi, checking code, I think problem is here:
This other file has the same, but now changed to this: By the way, please check this two classes - they seem very similar and looks like they are trying to do the same method override with very little differences, which doesnt look right - and looks like it can be broken very easy. |
You are right. I overlooked this line.
in lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb. So it needs to be fixed (See #115). FYI: Both classes are indeed similar should deliver the SAME functionality. I introduced them to offer two ways of using logstasher one with implicit monkey patching and one by explicit documented including. |
…om-fields [Parly #114] Fixes a regression found in instrumentation with customer_fields
related to a past problem: - in Datastore: #674 - in Logstasher gem: shadabahmed/logstasher#114
Closing this as fixed in #115 |
Adding a Devise users details as a custom field was causing devise to be initialised prior to the controller action being executed. This is due to the fact that the custom fields were being added before the controller action.
Also, custom fields are not being added if an exception was thrown from the controller.
The text was updated successfully, but these errors were encountered: