- style fix

- 'case blah:' is not valid in ruby 1.9 (the colon at the end). I can't
  find this actually documented anywhere, but mainly due to searching
  for 'case' and 'when' in the ruby changelog is pointless.
This commit is contained in:
Jordan Sissel 2011-05-26 15:02:35 -07:00
parent fb51b442c1
commit 9335997b15

View file

@ -36,12 +36,12 @@ class LogStash::Outputs::Stdout < LogStash::Outputs::Base
if @debug
case @debug_format.first
when "ruby":
@print_method.call(event.to_hash)
when "json":
puts event.to_json
else
raise "unknown debug_format #{@debug_format}, this should never happen"
when "ruby"
@print_method.call(event.to_hash)
when "json"
puts event.to_json
else
raise "unknown debug_format #{@debug_format}, this should never happen"
end
else
puts event.to_s