about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 30170e810..1572eaf6c 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -106,6 +106,6 @@ Rails.application.configure do
   config.active_record.logger = nil
 
   config.to_prepare do
-    StatsD.backend = StatsD::Instrument::Backends::NullBackend if ENV['STATSD_ADDR'].blank?
+    StatsD.backend = StatsD::Instrument::Backends::NullBackend.new if ENV['STATSD_ADDR'].blank?
   end
 end