From b3ed98bc377e9ae0dad566b44819b7c3ce8e4597 Mon Sep 17 00:00:00 2001 From: nigel007 <609441862@qq.com> Date: Wed, 12 Jun 2019 22:24:39 +0800 Subject: [PATCH] add some logger.info --- app/services/repositories_service.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/repositories_service.rb b/app/services/repositories_service.rb index fc48b4316..d73df0c2d 100644 --- a/app/services/repositories_service.rb +++ b/app/services/repositories_service.rb @@ -25,8 +25,12 @@ class RepositoriesService ActiveRecord::Base.transaction do begin if repo.save! + Rails.logger.info("!!!!!! repo.save!成功") s = Trustie::Gitlab::Sync.new s.create_project(project, repo) + Rails.logger.info("!!!!!!!!! project.gpid is: .......") + Rails.logger.info(project.gpid.blank?) + Rails.logger.info(project.gpid) raise "sync failed" if project.gpid.blank? status = 0 return status, repo # 表示创建成功