./lib/le/host/http.rb in le-2.1.7 vs ./lib/le/host/http.rb in le-2.1.8

- old
+ new

@@ -4,10 +4,12 @@ require 'uri' module Le module Host class HTTP + API_SERVER = 'data.logentries.com' + API_PORT = 10000 include Le::Host::InstanceMethods attr_accessor :token, :queue, :started, :thread, :conn, :local, :debug def initialize(token, local, debug) if defined?(Rails) @@ -73,10 +75,10 @@ @started = false end def openConnection dbg "LE: Reopening connection to Logentries API server" - @conn = TCPSocket.new('api.logentries.com', 10000) + @conn = TCPSocket.new(API_SERVER, API_PORT) dbg "LE: Connection established" end def reopenConnection