add loggers

This commit is contained in:
nigel007 2019-08-25 11:06:31 +08:00
parent cc4e28f595
commit 339b9138a4
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ class RepositoriesService
Rails.logger.info("!!!!!!!!!!!!!!!!!!!!!!!is_single_identifier......")
return status, nil
else
Rails.logger.info("!!!!!!!!!!!!!!!!!!!!!!!params_repository.first[1] is:......")
Rails.logger.info(params_repository.first[1])
attrs = {:attrs => {:identifier => params_repository.first[1]}, :attrs_extra => {}}
repo = Repository.factory('Git')
repo.safe_attributes = params_repository
@ -19,6 +21,8 @@ class RepositoriesService
end
repo.project = project
repo.type = 'Repository::Gitlab'
Rails.logger.info("!!!!!!!!!!!!!!!!!!!!!!!repo.identifier is:......")
Rails.logger.info(repo.identifier.downcase)
repo.identifier = repo.identifier.downcase
repo.url = repo.identifier
repo.root_url = repo.url