summaryrefslogtreecommitdiff
path: root/bin
diff options
authorJeff Lane <jeffrey.lane@canonical.com>2020-05-14 09:49:46 -0400
committerJeff Lane <jeffrey.lane@canonical.com>2020-05-14 09:49:46 -0400
commit20fe5ea22ce69b20856266099ec7d8afd0084b0e (patch)
tree0227c780574431fb5baa2dd8da639727b4162e96 /bin
parent3d5dbbfd34ec550dcc89d7c709929ea9d27eefa0 (diff)
bin/network: changed failure output to be a little more explicit. lp: #1878614
Diffstat (limited to 'bin')
-rwxr-xr-xbin/network10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/network b/bin/network
index 5bdf1f0a..fea7f72d 100755
--- a/bin/network
+++ b/bin/network
@@ -252,16 +252,16 @@ class IPerfPerformanceTest(object):
cpu_load = 0
if percent < self.fail_threshold or \
cpu_load > self.cpu_load_fail_threshold:
- logging.warning("Poor network performance detected against {}".
+ logging.warning("The network test against {} failed because:".
format(self.target))
if percent < self.fail_threshold:
- logging.warning(" Transfer speed: {} Mb/s".
+ logging.error(" Transfer speed: {} Mb/s".
format(throughput))
- logging.warning(" {:03.2f}% of theoretical max {} Mb/s\n".
+ logging.error(" {:03.2f}% of theoretical max {} Mb/s\n".
format(percent, int(self.iface.max_speed)))
if cpu_load > self.cpu_load_fail_threshold:
- logging.warning(" CPU load: {}%".format(cpu_load))
- logging.warning(" CPU load is above {}% maximum\n".
+ logging.error(" CPU load: {}%".format(cpu_load))
+ logging.error(" CPU load is above {}% maximum\n".
format(self.cpu_load_fail_threshold))
return 30