增加日志信息

dev_shixuns
daiao 6 years ago
parent 8b26219bee
commit d1f536b191

@ -449,6 +449,8 @@ class MyshixunsController < ApplicationController
game = Game.find game_id game = Game.find game_id
msg = game.run_code_message msg = game.run_code_message
# 只有评测中的game才会创建和更新代码评测中的信息 # 只有评测中的game才会创建和更新代码评测中的信息
logger.info("##################game: #{game.status}")
logger.info("##################retry_status: #{game.retry_status}")
if game.status == 1 || game.status == 2 && game.retry_status == 1 if game.status == 1 || game.status == 2 && game.retry_status == 1
if msg.blank? if msg.blank?
RunCodeMessage.create!(:game_id => game_id, :status => 1, :message => message) RunCodeMessage.create!(:game_id => game_id, :status => 1, :message => message)

Loading…
Cancel
Save