mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- Add LogStash::Event#==
This commit is contained in:
parent
88e2597983
commit
fae90d1ae6
1 changed files with 10 additions and 0 deletions
|
@ -141,4 +141,14 @@ class LogStash::Event
|
|||
#$stderr.puts "sprintf(#{format.inspect}) => #{result.inspect}"
|
||||
return result
|
||||
end # def sprintf
|
||||
|
||||
public
|
||||
def ==(other)
|
||||
puts "#{self.class.name}#==(#{other.inspect})"
|
||||
if !other.is_a?(self.class)
|
||||
return false
|
||||
end
|
||||
|
||||
return other.to_hash == self.to_hash
|
||||
end # def ==
|
||||
end # class LogStash::Event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue