Merge "Remove log translations"

This commit is contained in:
Jenkins 2017-03-21 21:24:15 +00:00 committed by Gerrit Code Review
commit 1d9e1b1b86
2 changed files with 2 additions and 14 deletions

View File

@ -17,13 +17,3 @@ _C = _translators.contextual_form
# The plural translation function using the name "_P"
_P = _translators.plural_form
# Translators for log levels.
#
# The abbreviated names are meant to reflect the usual use of a short
# name like '_'. The "L" is for "log" and the other letter comes from
# the level.
_LI = _translators.log_info
_LW = _translators.log_warning
_LE = _translators.log_error
_LC = _translators.log_critical

View File

@ -9,8 +9,6 @@ from taskflow.jobs import backends as boards
from taskflow.persistence import backends as persistence_backends
from zake import fake_client
from craton._i18n import _LI
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
@ -55,11 +53,11 @@ def start(conf):
if conf.taskflow.db_upgrade:
with contextlib.closing(persistence.get_connection()) as conn:
LOG.info(_LI('Checking for database schema upgrade'))
LOG.info('Checking for database schema upgrade')
conn.upgrade()
my_name = uuidutils.generate_uuid()
LOG.info(_LI('I am %s'), my_name)
LOG.info('I am %s', my_name)
board = _get_jobboard_backend(conf, persistence=persistence)