cartodb-4.42/config/initializers/statsd.rb

9 lines
247 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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