Browse Source

fixed 项目搜索先es search服务容错

pull/313/head
“xxq250” 3 years ago
parent
commit
2bd723fc64
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/services/projects/elasticsearch_service.rb

+ 2
- 2
app/services/projects/elasticsearch_service.rb View File

@@ -13,8 +13,8 @@ class Projects::ElasticsearchService < ApplicationService
project_ids = result['data']['rows'].map{|d|d['instanceId']}
project_ids
rescue => e
puts "ElasticsearchService error: #{e.message}"
raise Error, e.message
Rails.logger.info "ElasticsearchService error: #{e.message}"
[]
end

end

Loading…
Cancel
Save