lib/logstash_writer.rb in logstash_writer-0.0.7 vs lib/logstash_writer.rb in logstash_writer-0.0.8

- old
+ new

@@ -326,9 +326,10 @@ if next_server @logger.debug("LogstashWriter") { "Trying to connect to #{next_server.to_s}" } @current_target = next_server # Trigger a connection attempt @current_target.socket + @logger.info("LogstashWriter") { "Connected to #{@current_target.describe_peer}" } else @logger.debug("LogstashWriter") { "Could not connect to any server; pausing before trying again" } @current_target = nil sleep retry_delay