You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@logger.warn("Authentication Error while writing to InfluxDB",:exception=>ae)
rescueInfluxDB::ConnectionError=>ce
@logger.warn("Connection Error while writing to InfluxDB",:exception=>ce)
rescueException=>e
@logger.warn("Non recoverable exception while writing to InfluxDB",:exception=>e)
end
end
Correct code should look like this.
def dowrite(events, database)
begin
@influxdbClient.write_points(events, @time_precision, @retention_policy, database )
rescue InfluxDB::AuthenticationError => ae
@logger.warn("Authentication Error while writing to InfluxDB", :exception => ae)
rescue InfluxDB::ConnectionError => ce
@logger.warn("Connection Error while writing to InfluxDB", :exception => ce)
rescue Exception => e
@logger.warn("Non recoverable exception while writing to InfluxDB", :exception => e)
end
end
The text was updated successfully, but these errors were encountered:
First db variable gets sprintf-ed in line 179.
logstash-output-influxdb/lib/logstash/outputs/influxdb.rb
Lines 179 to 186 in 288a3b5
But then original "@db", rather than sprintf-ed "database" variable is used in line 190.
logstash-output-influxdb/lib/logstash/outputs/influxdb.rb
Lines 188 to 198 in 288a3b5
Correct code should look like this.
The text was updated successfully, but these errors were encountered: