2016-11-21 08:27:17 |
zhangyanxian |
description |
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 |
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:
in cluster_client.py (
LOG.info(_LI('Cluster %s succeeded.') % cluster_id) |
|