Closed zerobearing2 closed 10 years ago
Is there a reason you are not leaving parameters as a "Hash"? https://github.com/shadabahmed/logstasher/blob/master/lib/logstasher.rb#L36-L37
payload[:parameters] = payload[:params].except(*ActionController::LogSubscriber::INTERNAL_PARAMS).inject(""){|s,(k,v)| s+="#{k}=#{v}\n"}
Would seem more useful to remain a Hash and allow the log entry to be JSON encoded, no?
Hash
payload[:parameters] = payload[:params].except(*ActionController::LogSubscriber::INTERNAL_PARAMS)
Yes . .makes sense . .I can change this . .or do you want to submit a pull request ?
sent PR #14
Is there a reason you are not leaving parameters as a "Hash"? https://github.com/shadabahmed/logstasher/blob/master/lib/logstasher.rb#L36-L37
Would seem more useful to remain a
Hash
and allow the log entry to be JSON encoded, no?