Fix statsd null backend not being initialized properly
This commit is contained in:
parent
8b9206f7d9
commit
f051c2e813
4 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue