日志打印

This commit is contained in:
huang 2017-03-26 13:26:13 +08:00
parent 1f36ec2636
commit 3bee690554
2 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@ class GamesController < ApplicationController
# 首次进入版本库自动打开文件
# path"" && path: @game.path
def show
logger.info("*** ###############")
game_path = (@game.path.blank? ? @game.path : @game.path.strip)
@rev = @rev.nil? ? "master" : @rev
@git_url = git_repository_url(@myshixun, "Myshixun")
@ -36,7 +37,7 @@ class GamesController < ApplicationController
end
@latest_output = @game.latest_output.try(:out_put)
outputs = @game.outputs
@had_done = 1 if (@myshixun.games.count == @game.stage && @game.status ==2)
@had_done = 1 if (@mysh ixun.games.count == @game.stage && @game.status ==2)
if outputs.count == 0
@results = []
else

View File

@ -51,8 +51,7 @@ class ShixunsController < ApplicationController
flash[:notice] = l(:notice_shixun_failed_exec)+ ":" + e.message
raise ActiveRecord::Rollback
respond_to do |format|
format.html{
redirect_to shixun_path(@shixun)}
format.html{redirect_to shixun_path(@shixun)}
end
end
end