Replacement _ on _LE in all LOG.error
oslo.i18n uses different marker functions to separate the translatable messages into different catalogs, which the translation teams can prioritize translating. For details, please refer to: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack There were not marker fuctions some places in directory network. This commit makes changes: * Add missing marker functions * Use ',' instead of '%' while adding variables to log messages Change-Id: I5a8f381b6f8fdb4e8febe9e6a901f7cdc6846646
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
import pbr.version
|
||||
|
||||
from nova.i18n import _
|
||||
from nova.i18n import _LE
|
||||
|
||||
NOVA_VENDOR = "OpenStack Foundation"
|
||||
NOVA_PRODUCT = "OpenStack Nova"
|
||||
@@ -62,7 +62,7 @@ def _load_config():
|
||||
NOVA_PACKAGE = cfg.get("Nova", "package")
|
||||
except Exception as ex:
|
||||
LOG = logging.getLogger(__name__)
|
||||
LOG.error(_("Failed to load %(cfgfile)s: %(ex)s"),
|
||||
LOG.error(_LE("Failed to load %(cfgfile)s: %(ex)s"),
|
||||
{'cfgfile': cfgfile, 'ex': ex})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user