Skip to content

Commit 67840b2

Browse files
committed
Fix warning message
1 parent 1928ee6 commit 67840b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/influxdb/client/http.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def connect_with_retry
6262
raise InfluxDB::ConnectionError, "Tried #{retry_count - 1} times to reconnect but failed."
6363
end
6464

65-
log(:warn) { "Failed to contact host #{host}: #{e.inspect} - retrying in #{delay}s." }
65+
log(:warn) do
66+
"Failed to contact host #{http.address}: #{e.inspect} - retrying in #{delay}s."
67+
end
6668
sleep delay
6769
delay = [config.max_delay, delay * 2].min
6870

0 commit comments

Comments
 (0)