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:
@@ -62,7 +62,7 @@ class mstpctlutil(utilsBase):
|
|||||||
bridgeattrs['treeprio'] = int(bridgeattrs.get('bridgeid',
|
bridgeattrs['treeprio'] = int(bridgeattrs.get('bridgeid',
|
||||||
'').split('.')[0], base=16) * 4096
|
'').split('.')[0], base=16) * 4096
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.logger.info(str(e))
|
self.logger.warn(str(e))
|
||||||
pass
|
pass
|
||||||
return bridgeattrs
|
return bridgeattrs
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ class mstpctlutil(utilsBase):
|
|||||||
showall_output = self.subprocess_check_output(['/sbin/mstpctl',
|
showall_output = self.subprocess_check_output(['/sbin/mstpctl',
|
||||||
'showportdetail', bridgename, 'json'])
|
'showportdetail', bridgename, 'json'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.warn(str(e))
|
self.logger.info(str(e))
|
||||||
return
|
return
|
||||||
if not showall_output or showall_output == '':
|
if not showall_output or showall_output == '':
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user