Skip to content

Commit

Permalink
Follow hash syntax for logstash-event v1.4.x
Browse files Browse the repository at this point in the history
This is a working version of roidrage#75. It will break backwards compability
with < 1.4.x for logstash users.
  • Loading branch information
pxlpnk committed Feb 1, 2015
1 parent 212c9a0 commit c121c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gemspec

group :test do
gem 'actionpack'
gem 'logstash-event', '1.1.5'
gem 'logstash-event', git: 'git@github.com:elasticsearch/logstash.git', tag: '>1.5'
gem 'rubocop'
gem 'lines'
end
2 changes: 1 addition & 1 deletion lib/lograge/formatters/logstash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def call(data)
load_dependencies
event = LogStash::Event.new(data)

event.message = "[#{data[:status]}] #{data[:method]} #{data[:path]} (#{data[:controller]}##{data[:action]})"
event['message'] = "[#{data[:status]}] #{data[:method]} #{data[:path]} (#{data[:controller]}##{data[:action]})"
event.to_json
end

Expand Down

0 comments on commit c121c89

Please sign in to comment.