cartodb-4.42/config/initializers/statsd.rb
2024-04-06 05:25:13 +00:00

9 lines
247 B
Ruby

require 'statsd'
begin
Statsd.host = Cartodb.get_config(:graphite, 'host')
Statsd.port = Cartodb.get_config(:graphite, 'port')
rescue StandardError => e
Rails.logger.info "Ignoring statsd, because there were a error loading the config"
end