lib/logstash/outputs/nagios_nsca.rb in logstash-output-nagios_nsca-1.1.0 vs lib/logstash/outputs/nagios_nsca.rb in logstash-output-nagios_nsca-2.0.0
- old
+ new
@@ -67,13 +67,10 @@
def receive(event)
# exit if type or tags don't match
return unless output?(event)
# catch logstash shutdown
- if event == LogStash::SHUTDOWN
- finished
- return
- end
+ return if event == LogStash::SHUTDOWN
# skip if 'send_nsca' binary doesn't exist
if !command_file_exist?
@logger.warn("Skipping nagios_nsca output; send_nsca_bin file is missing",
"send_nsca_bin" => @send_nsca_bin, "missed_event" => event)