Merge "Remove log translations"
This commit is contained in:
commit
1d9e1b1b86
|
@ -17,13 +17,3 @@ _C = _translators.contextual_form
|
||||||
|
|
||||||
# The plural translation function using the name "_P"
|
# The plural translation function using the name "_P"
|
||||||
_P = _translators.plural_form
|
_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
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ from taskflow.jobs import backends as boards
|
||||||
from taskflow.persistence import backends as persistence_backends
|
from taskflow.persistence import backends as persistence_backends
|
||||||
from zake import fake_client
|
from zake import fake_client
|
||||||
|
|
||||||
from craton._i18n import _LI
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
@ -55,11 +53,11 @@ def start(conf):
|
||||||
|
|
||||||
if conf.taskflow.db_upgrade:
|
if conf.taskflow.db_upgrade:
|
||||||
with contextlib.closing(persistence.get_connection()) as conn:
|
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()
|
conn.upgrade()
|
||||||
|
|
||||||
my_name = uuidutils.generate_uuid()
|
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)
|
board = _get_jobboard_backend(conf, persistence=persistence)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue