lib/logstash/inputs/graphite.rb in logstash-input-graphite-2.0.1 vs lib/logstash/inputs/graphite.rb in logstash-input-graphite-2.0.2
- old
+ new
@@ -19,9 +19,11 @@
config_name "graphite"
public
def run(output_queue)
@queue = output_queue
+ # pass self as output_queue to super Tcp#run - this is a hack so that the << calls in
+ # Tcp will actually call the << method defined below. This is twisted :P
super(self)
end
# This is a silly hack to make the superclass (Tcp) give us a finished event
# so that we can parse it accordingly.