Public bug reported:

For example, do not do this:

# WRONG
LOG.info(_LI('some message: exception=%s'), six.text_type(exc))

Instead, use this style:

# RIGHT
LOG.info(_LI('some message: exception=%s'), exc)

refer to:
https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#avoid-forcing-the-translation-of-translatable-variables

** Affects: nova
     Importance: Undecided
     Assignee: fupingxie (fpxie)
         Status: In Progress

** Changed in: nova
     Assignee: (unassigned) => fupingxie (fpxie)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1793446

Title:
  Avoid Forcing the Translation of Translatable Variables

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  For example, do not do this:

  # WRONG
  LOG.info(_LI('some message: exception=%s'), six.text_type(exc))

  Instead, use this style:

  # RIGHT
  LOG.info(_LI('some message: exception=%s'), exc)

  refer to:
  
https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#avoid-forcing-the-translation-of-translatable-variables

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1793446/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to