add debug

This commit is contained in:
Nigel 2019-09-25 13:38:44 +08:00
parent 4c0c69157a
commit d7297fd5c1
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ class RepositoriesService
Rails.logger.info("!!!!!!!!!!!!!!!!repo.save! success")
s = Trustie::Gitlab::Sync.new
s.create_project(project, repo)
Rails.logger.info("11112222222222333333333333333333")
Rails.logger.info(project.gpid)
Rails.logger.info(project.gpid.blank?)
raise "sync failed" if project.gpid.blank?
status = 0
return status, repo # 表示创建成功