linuxbridge: Use lazy logging interpolation
There are a small number of examples of "eager" interpolation in neutron: logging.debug("foo %s" % arg) These should be converted to perform the interpolation lazily within the logging function, since if the severity is below the logging level then the interpolation can be skipped entirely. This change addresses all such examples found in linuxbridge agent via a pylint test. Other occurrences are addressed elsewhere. Change-Id: I5cb3bbb401f5049760dfe5263a52bd43f23dcfd4 Partial-Bug: #1404788
This commit is contained in:
parent
15581431c1
commit
4a5a8aab0f
|
@ -518,7 +518,7 @@ class LinuxBridgeManager:
|
|||
if not ip_lib.iproute_arg_supported(
|
||||
['bridge', 'fdb'], 'append', self.root_helper):
|
||||
LOG.warning(_LW('Option "%(option)s" must be supported by command '
|
||||
'"%(command)s" to enable %(mode)s mode') %
|
||||
'"%(command)s" to enable %(mode)s mode'),
|
||||
{'option': 'append',
|
||||
'command': 'bridge fdb',
|
||||
'mode': 'VXLAN UCAST'})
|
||||
|
@ -554,7 +554,7 @@ class LinuxBridgeManager:
|
|||
['ip', 'link', 'add', 'type', 'vxlan'],
|
||||
'proxy', self.root_helper):
|
||||
LOG.warning(_LW('Option "%(option)s" must be supported by command '
|
||||
'"%(command)s" to enable %(mode)s mode') %
|
||||
'"%(command)s" to enable %(mode)s mode'),
|
||||
{'option': 'proxy',
|
||||
'command': 'ip link add type vxlan',
|
||||
'mode': 'VXLAN MCAST'})
|
||||
|
|
Loading…
Reference in New Issue