From cdf94ca5c3af7b1e848376c8f2bb9412127568f4 Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Wed, 18 Oct 2023 12:07:34 +0200 Subject: [PATCH] correctly use REGISTRATION_LIVE_SITE as a bool in EnvConfig --- config/initializers/prometheus.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/prometheus.rb b/config/initializers/prometheus.rb index 97d57ab0..2e2ce06c 100644 --- a/config/initializers/prometheus.rb +++ b/config/initializers/prometheus.rb @@ -8,7 +8,7 @@ PrometheusExporter::Client.default = PrometheusExporter::Client.new(host: ENV.fetch('PROMETHEUS_EXPORTER'), port: 9091) -if Rails.env.production? && !EnvConfig.REGISTRATION_LIVE_SITE +if Rails.env.production? && !EnvConfig.REGISTRATION_LIVE_SITE? PrometheusExporter::Instrumentation::Process.start(type: 'wca-registration-handler-staging', labels: { process: '1' }) suffix = '-staging' else