lib/envoy/server/trunk.rb in envoy-proxy-0.1.1 vs lib/envoy/server/trunk.rb in envoy-proxy-0.1.2
- old
+ new
@@ -3,9 +3,14 @@
module Envoy
module Server
module Trunk
include Protocol
+ def log message
+ t = Time.now.strftime("%F %T")
+ STDERR.puts t + " " + message.split("\n").join("\n#{t.gsub(/./, ' ')} ")
+ end
+
def initialize key
super
@key = key
end