1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

prevent elasticsearch from logging during tests (clearer output)

This commit is contained in:
Sylvain 2016-12-01 11:36:35 +01:00
parent 3fad06c886
commit 5067ecd3ac

View File

@ -1,3 +1,8 @@
client = Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: true
if Rails.env.test?
client = Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: false
else
client = Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: true
end
Elasticsearch::Model.client = client
Elasticsearch::Persistence.client = client