lib/envoy/client/trunk.rb in envoy-proxy-0.0.16 vs lib/envoy/client/trunk.rb in envoy-proxy-0.0.17

- old
+ new

@@ -40,15 +40,19 @@ end def receive_keepalive end - def receive_message message + def log message t = Time.now.strftime("%F %T") STDERR.puts t + " " + message.split("\n").join("\n#{t.gsub(/./, ' ')} ") end + def receive_message message + log message + end + def receive_halt @halting = true EventMachine.stop_event_loop end @@ -82,6 +86,6 @@ end end end -end \ No newline at end of file +end