Interpolate strings using logging own methods
String interpolation should be delayed to be handled by the logging code, rather than being done at the point of the logging call. Ref:http://docs.openstack.org/developer/oslo.i18n/guidelines.html#log-translation For example: # WRONG LOG.info(_LI('some message: variable=%s') % variable) # RIGHT LOG.info(_LI('some message: variable=%s'), variable) Change-Id: I44b85cbf9f4b27d1fee2c1465029fca8cde4f87e
This commit is contained in:
parent
3afc6e6729
commit
0348b7e001
@ -354,7 +354,7 @@ def main():
|
||||
|
||||
LOG.info("Starting search for unclassified failures")
|
||||
for group in all_gate_fails:
|
||||
LOG.info("Processing failures for group: %s" % group)
|
||||
LOG.info("Processing failures for group: %s", group)
|
||||
fails = all_gate_fails[group]
|
||||
if not fails:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user