lib/logstasher.rb in logstasher-0.3.1 vs lib/logstasher.rb in logstasher-0.4.0

- old
+ new

@@ -31,11 +31,10 @@ end def self.add_default_fields_to_payload(payload, request) payload[:ip] = request.remote_ip payload[:route] = "#{request.params[:controller]}##{request.params[:action]}" - payload[:parameters] = payload[:params].except(*ActionController::LogSubscriber::INTERNAL_PARAMS).inject(""){|s,(k,v)| - s+="#{k}=#{v}\n"} + payload[:parameters] = payload[:params].except(*ActionController::LogSubscriber::INTERNAL_PARAMS) self.custom_fields += [:ip, :route, :parameters] end def self.add_custom_fields(&block) ActionController::Metal.send(:define_method, :logtasher_add_custom_fields_to_payload, &block)