Replace "LOG.info(_" with "LOG.info(_LI"

Follow http://docs.openstack.org/developer/oslo.i18n/guidelines.html:
If a common message is not being used, they should each betreated
separately with respect to choosing a marker function.So this patch
is to fix it.

Change-Id: If7a74ce983ad0c7f4cab057cadd7d20ef3067fcd
Closes-Bug: #1600788
This commit is contained in:
weiweigu 2016-07-15 15:26:02 +08:00
parent 8111e0c635
commit ec729d6cc6
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import pecan
from magnum.api import config as api_config
from magnum.api import middleware
from magnum.common import config as common_config
from magnum.i18n import _
from magnum.i18n import _LI
# Register options for the service
API_SERVICE_OPTS = [
@ -81,7 +81,7 @@ def load_app():
if not cfg_file:
raise cfg.ConfigFilesNotFoundError([cfg.CONF.api.api_paste_config])
LOG.info(_("Full WSGI config used: %s") % cfg_file)
LOG.info(_LI("Full WSGI config used: %s"), cfg_file)
return deploy.loadapp("config:" + cfg_file)