Browse Source

Improve connection timeout log message

The log message doesn't contain the target ip address which can be
crucial.

Change-Id: Iff674a56267f416114b6bfd6203f3ac76bb5d569
tags/3.5.0
Tobias Henkel 5 months ago
parent
commit
6899e19dfc
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      nodepool/nodeutils.py

+ 1
- 1
nodepool/nodeutils.py View File

@@ -77,7 +77,7 @@ def nodescan(ip, port=22, timeout=60, gather_hostkeys=True):
77 77
     key = None
78 78
     for count in iterate_timeout(
79 79
             timeout, exceptions.ConnectionTimeoutException,
80
-            "connection on port %s" % port):
80
+            "connection to %s on port %s" % (ip, port)):
81 81
         sock = None
82 82
         t = None
83 83
         try:

Loading…
Cancel
Save