lib/em-midori/server.rb in em-midori-0.0.9.5 vs lib/em-midori/server.rb in em-midori-0.1.0
- old
+ new
@@ -30,10 +30,10 @@
websocket_request(StringIO.new(data))
else
receive_new_request(data)
end
now_time = Time.now
- @logger.info "#{@request.ip} - - \"#{@request.method} #{@request.path}\" #{@response.status} #{(now_time.to_f - start_time.to_f).round(6)}".green
+ @logger.info "#{@request.ip} - - \"#{@request.method} #{@request.path} HTTP/#{@request.protocol.join('.')}\" #{@response.status} #{(now_time.to_f - start_time.to_f).round(6)}".green
end)
end.call
end
# Logics of receiving new request