mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- 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:
parent
fb51b442c1
commit
9335997b15
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue