summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-15 12:15:03 +0200
committerimarom <imarom@cisco.com>2016-12-15 12:17:14 +0200
commit774bf2a37d7c8ff4bac737052a208f606a9c0035 (patch)
tree8e3d3353811fc7cdcc0728859830dc5923a87857 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
parent40288bbc170286d50d8c498a5f4dd5c70637763d (diff)
documenation for neighboring protocols
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py3
1 files changed, 2 insertions, 1 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 ee5db1f0..fcf50dfd 100755
--- 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
@@ -101,7 +101,8 @@ class LoggerApi(object):
def __enter__ (self):
self.saved_level = self.logger.get_verbose()
- self.logger.set_verbose(self.level)
+ if self.level < self.saved_level:
+ self.logger.set_verbose(self.level)
def __exit__ (self, type, value, traceback):
self.logger.set_verbose(self.saved_level)