lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb in logstasher-1.1.0 vs lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb in logstasher-1.1.1

- old
+ new

@@ -21,12 +21,12 @@ ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload| if self.respond_to?(:logstasher_add_custom_fields_to_request_context) logstasher_add_custom_fields_to_request_context(LogStasher.request_context) end - if self.respond_to?(:logtasher_add_custom_fields_to_payload) + if self.respond_to?(:logstasher_add_custom_fields_to_payload) before_keys = raw_payload.keys.clone - logtasher_add_custom_fields_to_payload(raw_payload) + logstasher_add_custom_fields_to_payload(raw_payload) after_keys = raw_payload.keys # Store all extra keys added to payload hash in payload itself. This is a thread safe way LogStasher::CustomFields.add(*(after_keys - before_keys)) end