← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1661262] Re: String interpolation should be handled by logger

 

*** This bug is a duplicate of bug 1596829 ***
    https://bugs.launchpad.net/bugs/1596829

Okay, thanks for the information and sorry for the inconvience.


2017.02.07. 15:44 keltezéssel, gordon chung írta:
> please don't create generic bugs against multiple projects. launchpad
> doesn't handle this well and it also spams a lot of projects with
> unrelated updates. thanks :)
>
> ** No longer affects: python-ceilometerclient
>


** This bug has been marked a duplicate of bug 1596829
   String interpolation should be delayed at logging calls

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

Title:
  String interpolation should be handled by logger

Status in OpenStack Dashboard (Horizon):
  In Progress
Status in python-heatclient:
  In Progress
Status in python-ironicclient:
  In Progress
Status in python-neutronclient:
  In Progress
Status in OpenStack Object Storage (swift):
  Fix Released

Bug description:
  According to [1] guideline, strings should be interpolated by the
  logger.

      # WRONG
      LOG.info(_LI('some message: variable=%s') % variable)

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

  
  [1]: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages

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


References