diff --git a/cursive/i18n.py b/cursive/i18n.py index 6037320..93eb86a 100644 --- a/cursive/i18n.py +++ b/cursive/i18n.py @@ -24,13 +24,3 @@ _translators = oslo_i18n.TranslatorFactory(domain=DOMAIN) # The primary translation function using the well-known name "_" _ = _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 diff --git a/cursive/signature_utils.py b/cursive/signature_utils.py index bb4cd02..b31afe1 100644 --- a/cursive/signature_utils.py +++ b/cursive/signature_utils.py @@ -29,7 +29,7 @@ from oslo_serialization import base64 from oslo_utils import encodeutils from cursive import exception -from cursive.i18n import _, _LE +from cursive.i18n import _ from cursive import verifiers LOG = logging.getLogger(__name__) @@ -342,7 +342,7 @@ def get_certificate(context, signature_certificate_uuid): # The problem encountered may be backend-specific, since castellan # can use different backends. Rather than importing all possible # backends here, the generic "Exception" is used. - msg = (_LE("Unable to retrieve certificate with ID %(id)s: %(e)s") + msg = ("Unable to retrieve certificate with ID %(id)s: %(e)s" % {'id': signature_certificate_uuid, 'e': encodeutils.exception_to_unicode(e)}) LOG.error(msg)