lib/dripdrop/handlers/http.rb in dripdrop-0.2.0 vs lib/dripdrop/handlers/http.rb in dripdrop-0.3.0

- old
+ new

@@ -44,11 +44,11 @@ EM.next_tick do case @msg_format when :dripdrop_json msg = DripDrop::Message.decode_json(env['rack.input'].read) msg.head[:http_env] = env - @recv_cbak.call(body,msg) + @recv_cbak.call(msg,body) else raise "Unsupported message type #{@msg_format}" end end end @@ -67,11 +67,11 @@ def on_recv(msg_format=:dripdrop_json,&block) #Rack middleware was not meant to be used this way... #Thin's error handling only rescues stuff w/o a backtrace begin - Thin::Logging.debug = true - Thin::Logging.trace = true + Thin::Logging.debug = false + Thin::Logging.trace = false Thin::Server.start(@address.host, @address.port) do map '/' do run HTTPApp.new(msg_format,&block) end end