1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

ifupdownaddons: mstpctlutil: changing log level to catch subprocess exception.

This commit is contained in:
Julien Fortin
2016-04-19 15:18:35 +02:00
parent 0605af50a3
commit 1927d237ee

View File

@ -62,7 +62,7 @@ class mstpctlutil(utilsBase):
bridgeattrs['treeprio'] = int(bridgeattrs.get('bridgeid',
'').split('.')[0], base=16) * 4096
except Exception, e:
self.logger.info(str(e))
self.logger.warn(str(e))
pass
return bridgeattrs
@ -78,7 +78,7 @@ class mstpctlutil(utilsBase):
showall_output = self.subprocess_check_output(['/sbin/mstpctl',
'showportdetail', bridgename, 'json'])
except Exception as e:
self.logger.warn(str(e))
self.logger.info(str(e))
return
if not showall_output or showall_output == '':
return