network_logger_io 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/network_logger_io.rb +2 -1
- metadata +1 -1
data/lib/network_logger_io.rb
CHANGED
@@ -8,6 +8,7 @@ class NetworkLoggerIO < IO
|
|
8
8
|
|
9
9
|
raise(ArgumentError, ':host is required') unless @options[:host]
|
10
10
|
raise(ArgumentError, ':api_key is required') unless @options[:api_key]
|
11
|
+
raise(ArgumentError, ':pid is required') unless @options[:pid]
|
11
12
|
|
12
13
|
@options[:port] ||= 4455
|
13
14
|
@options[:type] ||= 'default'
|
@@ -22,7 +23,7 @@ class NetworkLoggerIO < IO
|
|
22
23
|
end
|
23
24
|
|
24
25
|
def fresh_buffer
|
25
|
-
[@options[:api_key].bytesize, @options[:api_key], @options[:type].bytesize, @options[:type]].pack('nA*nA*')
|
26
|
+
[@options[:api_key].bytesize, @options[:api_key], @options[:type].bytesize, @options[:type], @options[:pid].bytesize, @options[:pid]].pack('nA*nA*nA*')
|
26
27
|
end
|
27
28
|
|
28
29
|
def write(data)
|