Skip to content

Commit

Permalink
Rename teardown to close
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-- authored and Mathieu Martin committed May 9, 2018
1 parent 059c005 commit a7fa556
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/logstash/outputs/loggly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def format_message(event)
event.to_json
end

def flush(events, teardown=false)
def flush(events, close=false)
# Avoid creating a new string for newline every time
newline = "\n".freeze

Expand Down Expand Up @@ -217,8 +217,8 @@ def send_event(url, message)
end #loop
end # def send_event

def teardown
def close
buffer_flush(:final => true)
end # def teardown
end # def close

end # class LogStash::Outputs::Loggly

0 comments on commit a7fa556

Please sign in to comment.