My uneducated guess is, that .blank? is false if the config is not present at all and thus this snippet from influxdb_rails.rb
if CONFIG['influxdb_hosts'].blank? # defaults to localhost otherwise
InfluxDB::Rails.configure do |config|
config.instrumentation_enabled = false
end
return
end
Issue Description
The default configuration with unconfigured influxdb settings in config.yml triggers a continuous flow of these in production.log:
(My machine has a different service than influxdb running on port 8086, this is why this is not "connection refused")
Expected Result
No such warnings, no trying to connect a nonconfigured service
How to Reproduce
Further Information
I can make the warning go away by specifying empty
influxdb_hosts:
key in options.ymlI think the influxdb config handling is inconsistent:
My uneducated guess is, that
.blank?
is false if the config is not present at all and thus this snippet from influxdb_rails.rbdoes not work as expected.