From 0ac94f053276e79b98e0b13f8b9f1b07ba38ba4f Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 13 May 2020 11:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BAsl=E6=93=8D=E4=BD=9C=E6=97=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/jobs/project_create_chain_job.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/jobs/project_create_chain_job.rb b/app/jobs/project_create_chain_job.rb index 326f02b50..93590cf5a 100644 --- a/app/jobs/project_create_chain_job.rb +++ b/app/jobs/project_create_chain_job.rb @@ -5,6 +5,8 @@ class ProjectCreateChainJob < ApplicationJob status = 0 chain_type = chain_params[:type].to_s reponame = chain_params[:reponame] + Rails.logger.info("########_response_chain_type__#{chain_type}__") + 5.times do |i| if status == 200 @@ -34,6 +36,8 @@ class ProjectCreateChainJob < ApplicationJob #创建项目的上链操作 def create_chain(chain_params) + Rails.logger.info("########_chain trustieCreate___#{chain_params[:ownername]}____#{chain_params[:reponame]}___") + system("chain trustieCreate #{chain_params[:ownername]} #{chain_params[:reponame]}") end