cartodb-4.29/config/initializers/statsd.rb

9 lines
225 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
require 'statsd'
begin
Statsd.host = Cartodb.config[:graphite]['host']
Statsd.port = Cartodb.config[:graphite]['port']
rescue => e
Rails.logger.info "Ignoring statsd, because there were a error loading the config"
end