lib/logstash/util/relp.rb in logstash-input-relp-2.0.5 vs lib/logstash/util/relp.rb in logstash-input-relp-3.0.0
- old
+ new
@@ -1,7 +1,8 @@
# encoding: utf-8
require "socket"
+require "cabin"
class Relp#This isn't much use on its own, but gives RelpServer and RelpClient things
RelpVersion = '0'#TODO: spec says this is experimental, but rsyslog still seems to exclusively use it
RelpSoftware = 'logstash,1.1.1,http://logstash.net'
@@ -99,10 +100,10 @@
end
class RelpServer < Relp
def initialize(host,port,required_commands=[],ssl_context=nil)
- @logger = Cabin::Channel.get(LogStash)
+ @logger = ::Cabin::Channel.get(LogStash)
@server=true
#These are things that are part of the basic protocol, but only valid in one direction (rsp, close etc.)
@basic_relp_commands = ['close']#TODO: check for others