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:
Tobias Henkel 2019-01-23 12:59:59 +01:00
parent bf5a206c08
commit 6899e19dfc
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 1 additions and 1 deletions

View File

@ -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: