← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1563174] Re: Using LOG.warning replace LOG.warn

 

https://review.openstack.org/#/c/262237/ - see comments here. Oslo.log
did that work for us=)

** Changed in: glance
       Status: New => Invalid

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

Title:
  Using LOG.warning replace LOG.warn

Status in Glance:
  Invalid

Bug description:
  Python 3 deprecated the logger.warn method [1] so I prefer to use warning to avoid DeprecationWarning. 
  If we are using logger from oslo.log, warn is still valid [2]. But i think switching to LOG.warning is better.

  [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/glance/+bug/1563174/+subscriptions


References