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:
parent
3fad06c886
commit
5067ecd3ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user