lib/client.rb in game-server-0.3.3 vs lib/client.rb in game-server-0.4.0
- old
+ new
@@ -2,16 +2,14 @@
def receive_request(request)
find_controller(request.name).new(self, request).run
rescue Exception => e
- logger.info "\n\n\n\n\n\nCRITICAL SERVER ERROR"
- logger.error e
- logger.error e.backtrace.join("\n")
+ log_exception e
end
def send_line(string)
- logger.info "send_line #{string}\n"
+ log "send_line #{string}\n"
send_data(string + "\n")
end
def send_json(object)
send_line object.to_json