Reviewed: https://review.openstack.org/558634 Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=8bc3693c19960a2105d53ec1e956fa03b12e2a50 Submitter: Zuul Branch: master
commit 8bc3693c19960a2105d53ec1e956fa03b12e2a50 Author: Erik Olof Gunnar Andersson <email address hidden> Date: Tue Apr 3 14:28:01 2018 -0700
Replace deprecated LOG.warn with LOG.warning
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
Change-Id: Ibbcc287815cbc06162a13448c2dabcb0748e4e32 Closes-Bug: #1508442
Reviewed: https:/ /review. openstack. org/558634 /git.openstack. org/cgit/ openstack/ designate/ commit/ ?id=8bc3693c199 60a2105d53ec1e9 56fa03b12e2a50
Committed: https:/
Submitter: Zuul
Branch: master
commit 8bc3693c19960a2 105d53ec1e956fa 03b12e2a50
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Tue Apr 3 14:28:01 2018 -0700
Replace deprecated LOG.warn with LOG.warning
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 /github. com/openstack/ oslo.log/ blob/master/ oslo_log/ log.py# L85
[2]https:/
Change-Id: Ibbcc287815cbc0 6162a13448c2dab cb0748e4e32
Closes-Bug: #1508442