Skip to content

Commit 9e0640b

Browse files
committed
chore: Make it easier to enable ES debugging
1 parent b65da63 commit 9e0640b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/proxes/services/es.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def client
1919
cert_store: ssl_store
2020
}
2121
},
22-
log: ENV['APP_ENV'] == 'development',
22+
log: ENV['APP_ENV'] == 'development' || (ENV['ES_DEBUG'] || 0).to_i == 1,
2323
logger: Ditty::Services::Logger,
2424
request_timeout: (ENV['ELASTICSEARCH_REQUEST_TIMEOUT'] || 300).to_i
2525
) do |faraday|

0 commit comments

Comments
 (0)