./lib/le/host/https/tcp.rb in le-1.4.5 vs ./lib/le/host/https/tcp.rb in le-1.5
- old
+ new
@@ -44,23 +44,14 @@
end
def deliver(message)
- if @conn == nil
- begin
- createSocket(@key, @location)
- rescue OpenSSL::SSL::SSLError, TimeoutError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
- $stderr.puts "WARNING: #{e.class} Could not write log. No connection to Logentries #{e.message}"
- return
- end
- end
# Sends the log to the Logentries Server
begin
@conn.print(message + "\r\n")
rescue OpenSSL::SSL::SSLError, TimeoutError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ENOTCONN, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
-
- $stderr.puts "WARNING: #{e.class} sending log #{e.message}"
+ $stderr.puts "WARNING: #{e.class} sending log #{e.message}"
begin
createSocket(@key, @location)
rescue OpenSSL::SSL::SSLError, TimeoutError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
$stderr.puts "WARNING: #{e.class} creating the connection to Logentries. #{e.message}"
end