Skip to content

Commit 66eb290

Browse files
authored
Merge pull request #279 from avelanarius/fix-log
connection: fix logging of non-IP sockets
2 parents 679ad24 + 6788a7c commit 66eb290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cassandra/connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def _connect_socket(self):
940940
self._initiate_connection(sockaddr)
941941
self._socket.settimeout(None)
942942
local_addr = self._socket.getsockname()
943-
log.debug('Connection %s %s:%s -> %s:%s', id(self), local_addr[0], local_addr[1], sockaddr[0], sockaddr[1])
943+
log.debug("Connection %s: '%s' -> '%s'", id(self), local_addr, sockaddr)
944944
if self._check_hostname:
945945
self._match_hostname()
946946
sockerr = None

0 commit comments

Comments
 (0)