Make the INFO 'Host (ssh) foo is alive" messages much less spammy,
today there are 10s of these that appear in the INFO console logs when
running any sort of autoserv command.
Only show it on the actual intentional "Ping" done in verify().
Signed-off-by: Gregory Smith <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3610 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/abstract_ssh.py b/server/hosts/abstract_ssh.py
index 4491994..d470848 100644
--- a/server/hosts/abstract_ssh.py
+++ b/server/hosts/abstract_ssh.py
@@ -294,7 +294,6 @@
def ssh_ping(self, timeout=60):
try:
self.run("true", timeout=timeout, connect_timeout=timeout)
- logging.info("Host (ssh) %s is alive", self.hostname)
except error.AutoservSSHTimeout:
msg = "Host (ssh) verify timed out (timeout = %d)" % timeout
raise error.AutoservSSHTimeout(msg)
@@ -403,6 +402,7 @@
logging.info('Pinging host ' + self.hostname)
self.ssh_ping()
+ logging.info("Host (ssh) %s is alive", self.hostname)
if self.is_shutting_down():
raise error.AutoservHostIsShuttingDownError("Host is shutting down")