]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remote: log hostname when reconnecting
authorZack Cerza <zack@redhat.com>
Wed, 15 Sep 2021 17:22:07 +0000 (11:22 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 15 Sep 2021 17:22:07 +0000 (11:22 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/remote.py

index 1b5cb6fda79ddb970a56818b1cb6b5637bfe93aa..634ce76004e315ef42b863b8f981e38559588b9b 100644 (file)
@@ -385,7 +385,7 @@ class Remote(RemoteShell):
         while elapsed_time() < timeout:
             success = self._reconnect(timeout=socket_timeout)
             if success:
-                log.info('Successfully reconnected to host')
+                log.info(f"Successfully reconnected to host '{self.name}'")
                 break
             # Don't let time_remaining be < 0
             time_remaining = max(0, timeout - elapsed_time())
@@ -394,7 +394,7 @@ class Remote(RemoteShell):
         return success
 
     def _reconnect(self, timeout=None):
-        log.info("Trying to reconnect to host")
+        log.info(f"Trying to reconnect to host '{self.name}'")
         try:
             self.connect(timeout=timeout, context='reconnect')
             return self.is_online