← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1508442] Re: LOG.warn is deprecated

 

Reviewed:  https://review.openstack.org/262442
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=7cfda25c10590488d2ef4acdd60bb3488f24e34d
Submitter: Jenkins
Branch:    master

commit 7cfda25c10590488d2ef4acdd60bb3488f24e34d
Author: Chaozhe.Chen <chaozhe.chen@xxxxxxxxxxxx>
Date:   Wed Dec 30 18:14:45 2015 +0800

    Replace LOG.warn with LOG.warning
    
    Python 3 deprecated the logger.warn method.
    we prefer to use warning to avoid DeprecationWarning.
    refer to:
    https://docs.python.org/3/library/logging.html#logging.warning
    
    Change-Id: Ie85ae39f69d35019c1008d35154cd717c2f8afbe
    Closes-Bug: #1508442


** Changed in: ceilometer
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1508442

Title:
  LOG.warn is deprecated

Status in Aodh:
  In Progress
Status in Astara:
  In Progress
Status in Blazar:
  In Progress
Status in Ceilometer:
  Fix Released
Status in cloud-init:
  In Progress
Status in cloudkitty:
  In Progress
Status in Designate:
  In Progress
Status in django-openstack-auth:
  In Progress
Status in DragonFlow:
  Fix Released
Status in Glance:
  In Progress
Status in Gnocchi:
  In Progress
Status in heat:
  Fix Released
Status in Ironic:
  Fix Released
Status in Ironic Inspector:
  Fix Released
Status in ironic-lib:
  Fix Committed
Status in ironic-python-agent:
  Fix Released
Status in OpenStack Identity (keystone):
  In Progress
Status in kolla:
  Fix Released
Status in Magnum:
  Fix Released
Status in Manila:
  In Progress
Status in networking-cisco:
  In Progress
Status in networking-odl:
  In Progress
Status in networking-ofagent:
  In Progress
Status in networking-vsphere:
  In Progress
Status in neutron:
  In Progress
Status in OpenStack Compute (nova):
  In Progress
Status in nova-powervm:
  Fix Released
Status in octavia:
  In Progress
Status in openstack-ansible:
  In Progress
Status in oslo.cache:
  Fix Released
Status in oslo.privsep:
  In Progress
Status in Packstack:
  Fix Released
Status in python-magnumclient:
  Fix Released
Status in Solum:
  In Progress
Status in tempest:
  In Progress
Status in tripleo:
  In Progress
Status in tuskar:
  In Progress
Status in zaqar:
  In Progress

Bug description:
  LOG.warn is deprecated in Python 3 [1] . But it still used in a few
  places, non-deprecated LOG.warning should be used instead.

  Note: If we are using logger from oslo.log, warn is still valid [2],
  but I agree we can switch to LOG.warning.

  [1]https://docs.python.org/3/library/logging.html#logging.warning
  [2]https://github.com/openstack/oslo.log/blob/master/oslo_log/log.py#L85

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