lib/skylight/worker/server.rb in skylight-0.1.8 vs lib/skylight/worker/server.rb in skylight-0.2.0.beta.1
- old
+ new
@@ -19,11 +19,10 @@
:keepalive,
:lockfile_path,
:sockfile_path
def initialize(config, lockfile, srv, lockfile_path)
-
unless lockfile && srv
raise ArgumentError, "lockfile and unix domain server socket are required"
end
@pid = Process.pid
@@ -212,11 +211,11 @@
when Messages::Hello
if msg.newer?
info "newer version of agent deployed - restarting; curr=%s; new=%s", VERSION, msg.version
reload(msg)
end
- when Messages::Trace
- t { "received trace" }
+ when Messages::Base
+ t { "received message" }
@collector.submit(msg)
when :unknown
debug "received unknown message"
else
debug "recieved: %s", msg