aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-23 14:28:47 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-23 14:28:47 +0000
commit6d5594fcaa4437ece871e9a53bfadcc8b9362c71 (patch)
tree95e20ddc5a1f2df9cd6ae7b5057488f580f5e8e4
parentf8aac9e8d9661fc2d934f9d97f607979239fd2d5 (diff)
downloadvland-6d5594fcaa4437ece871e9a53bfadcc8b9362c71.tar.gz
Switch remaining debug messages to use logging instead of print
Change-Id: I1b6ec00e03a2a3e2d38296c2bdaacc32341a1eeb
-rw-r--r--drivers/CiscoCatalyst.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/CiscoCatalyst.py b/drivers/CiscoCatalyst.py
index e92dec6..b1f3d2c 100644
--- a/drivers/CiscoCatalyst.py
+++ b/drivers/CiscoCatalyst.py
@@ -74,8 +74,8 @@ class CiscoCatalyst(SwitchDriver):
if match:
self.serial_number = match.group(1)
- print "serial number is %s" % self.serial_number
- print "system description is %s" % descr
+ logging.debug("serial number is %s" % self.serial_number)
+ logging.debug("system description is %s" % descr)
if not self._expected_descr_re.match(descr):
raise IOError("Switch %s not recognised by this driver: abort" % descr)
@@ -465,7 +465,7 @@ class CiscoCatalyst(SwitchDriver):
for i in range (int(subgroups[0]), int(subgroups[1]) + 1):
vlans.append(i)
else:
- print "Can't parse group \"" + group + "\""
+ logging.debug("Can't parse group \"" + group + "\"")
return vlans