Improve connection timeout log message
The log message doesn't contain the target ip address which can be crucial. Change-Id: Iff674a56267f416114b6bfd6203f3ac76bb5d569
This commit is contained in:
parent
bf5a206c08
commit
6899e19dfc
@ -77,7 +77,7 @@ def nodescan(ip, port=22, timeout=60, gather_hostkeys=True):
|
||||
key = None
|
||||
for count in iterate_timeout(
|
||||
timeout, exceptions.ConnectionTimeoutException,
|
||||
"connection on port %s" % port):
|
||||
"connection to %s on port %s" % (ip, port)):
|
||||
sock = None
|
||||
t = None
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user