diff options
author | 2016-03-13 17:37:36 +0200 | |
---|---|---|
committer | 2016-03-13 17:37:36 +0200 | |
commit | d935f8e440051b703175ea47077d51873f4d9504 (patch) | |
tree | 7df18e06f46b4b278a16bb94504b6c9438423d17 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | |
parent | 17e720ee8611d950c56e3a873f0ac9cd2b235279 (diff) |
removed some prints and a fix for error handling on add_streams
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py index 186771d8..0f8940a2 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py @@ -1942,8 +1942,8 @@ class STLClient(object): try: profile = STLProfile.load(opts.file[0]) except STLError as e: - print format_text("\nError while loading profile '{0}'\n".format(opts.file[0]), 'bold') - print e.brief() + "\n" + self.logger.log(format_text("\nError while loading profile '{0}'\n".format(opts.file[0]), 'bold')) + self.logger.log(e.brief() + "\n") return @@ -2205,7 +2205,7 @@ class STLClient(object): self.start(ports = opts.ports, duration = opts.duration, force = opts.force) except STLError as e: - print e.brief() + stl.logger.log(e.brief()) return return True @@ -2229,7 +2229,7 @@ class STLClient(object): try: self.set_port_attr(opts.ports, opts.prom) except STLError as e: - print e.brief() + stl.logger.log(brief()) return |