添加chain_params的log日志

This commit is contained in:
sylor_huang@126.com 2020-05-13 11:27:17 +08:00
parent 0ac94f0532
commit 1c73e982ba
2 changed files with 6 additions and 2 deletions

View File

@ -2,11 +2,13 @@ class ProjectCreateChainJob < ApplicationJob
queue_as :default
def perform(chain_params)
Rails.logger.info("########_response_chain_params_22222_#{chain_params}__")
status = 0
chain_type = chain_params[:type].to_s
reponame = chain_params[:reponame]
Rails.logger.info("########_response_chain_type__#{chain_type}__")
Rails.logger.info("########_response_chain_chain_type_#{chain_type}__")
Rails.logger.info("########_response_reponame_#{reponame}__")
5.times do |i|
if status == 200

View File

@ -31,6 +31,8 @@ class Repositories::CreateService < ApplicationService
ownername: user.try(:login),
reponame: @repository.try(:id)
}
Rails.logger.info("########_response_chain_params_111111_#{chain_params}__")
ProjectCreateChainJob.perform_later(chain_params) #创建上链操作
#暂时gitea的hook功能未完善
#Gitea::Repository::Hooks::CreateService.new(user, @repository.try(:identifier), hook_params).call #创建gitea的hook功能