Merge "Remove log translations"
This commit is contained in:
commit
88583edbb4
@ -20,13 +20,3 @@ _translators = oslo_i18n.TranslatorFactory(domain='oslo_concurrency')
|
|||||||
|
|
||||||
# The primary translation function using the well-known name "_"
|
# The primary translation function using the well-known name "_"
|
||||||
_ = _translators.primary
|
_ = _translators.primary
|
||||||
|
|
||||||
# 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
|
|
||||||
|
@ -30,7 +30,7 @@ from oslo_utils import reflection
|
|||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from oslo_concurrency._i18n import _, _LI
|
from oslo_concurrency._i18n import _
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@ -158,7 +158,7 @@ def remove_external_lock_file(name, lock_file_prefix=None, lock_path=None,
|
|||||||
try:
|
try:
|
||||||
os.remove(lock_file_path)
|
os.remove(lock_file_path)
|
||||||
except OSError:
|
except OSError:
|
||||||
LOG.info(_LI('Failed to remove file %(file)s'),
|
LOG.info('Failed to remove file %(file)s',
|
||||||
{'file': lock_file_path})
|
{'file': lock_file_path})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user