We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d3c33b commit 49a6182Copy full SHA for 49a6182
1 file changed
fluent/transport.py
@@ -35,8 +35,8 @@ def send(self, data):
35
self._conn.sendall(data)
36
37
38
-def get_connection_params(host, port=0):
39
- parsed = urlparse(host)
+def get_connection_params(url, port=0):
+ parsed = urlparse(url)
40
41
port = parsed.port or port or 0
42
@@ -58,8 +58,8 @@ def get_connection_params(host, port=0):
58
59
else:
60
raise TransportError(
61
- "Unknown connection protocol: host={}, port={}".format(
62
- host, port,
+ "Unknown connection protocol: url={}, port={}".format(
+ url, port,
63
)
64
65
0 commit comments