loghandler 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/loghandler_client +1 -1
- data/lib/loghandler/client.rb +1 -1
- data/lib/loghandler/version.rb +1 -1
- metadata +1 -1
data/bin/loghandler_client
CHANGED
@@ -38,7 +38,7 @@ def main(args)
|
|
38
38
|
|
39
39
|
end
|
40
40
|
opts.parse!(args)
|
41
|
-
Loghandler::Client.run(url:url,port:port,file:filename,log_type:log_type,node_name:node_name,uid:uid)
|
41
|
+
Loghandler::Client.run(url:url,port:port.to_i,file:filename,log_type:log_type,node_name:node_name,uid:uid)
|
42
42
|
return 0
|
43
43
|
end
|
44
44
|
|
data/lib/loghandler/client.rb
CHANGED
@@ -41,7 +41,7 @@ class Loghandler::Client < EM::Connection
|
|
41
41
|
options.merge!({uid:SecureRandom.hex(10)}) if options[:uid].nil?
|
42
42
|
channel = EventMachine::Channel.new
|
43
43
|
|
44
|
-
client = EventMachine.connect options[:url], options[:port], Loghandler::Client, options
|
44
|
+
client = EventMachine.connect options[:url], options[:port].to_i, Loghandler::Client, options
|
45
45
|
# TODO : move into Loghandler::Client
|
46
46
|
channel.subscribe do |data|
|
47
47
|
to_send={content:data,logged_at:Time.now}.merge(options)
|
data/lib/loghandler/version.rb
CHANGED