添加日志

pre_develop
jingquan huang 6 years ago
parent 768881c1c3
commit 88fa6989fe

@ -371,6 +371,9 @@ class GamesService
end end
if content != last_content if content != last_content
content_modified = 1 content_modified = 1
Rails.logger.info("@@@@@####{params[:evaluate]}")
Rails.logger.info("@@@@@####{params[:evaluate] == 1 ? "commit by author" : "auto commit" }")
code_file = @g.edit_file(@myshixun.gpid, current_user.login, :content => content, :file_path => path, :branch_name => "master", code_file = @g.edit_file(@myshixun.gpid, current_user.login, :content => content, :file_path => path, :branch_name => "master",
:commit_message => (params[:evaluate] == 1 ? "commit by author" : "auto commit" )) :commit_message => (params[:evaluate] == 1 ? "commit by author" : "auto commit" ))
end end

Loading…
Cancel
Save