Commit f45feba7 authored by Qiaowei Ren's avatar Qiaowei Ren

Change LOG.warn to LOG.warning

Python 3 deprecated the logger.warn method, see:
https://docs.python.org/3/library/logging.html#logging.warning
so we prefer to use warning to avoid DeprecationWarning.

Change-Id: I4aa8c4aee1fd2bcccf9fc1dca2ece6022df70a70
parent 50114306
......@@ -63,8 +63,8 @@ class FloatingIPPollster(plugin_base.PollsterBase):
for fip in self.neutron_cli.fip_get_all():
status = self.STATUS.get(fip['status'].lower())
if status is None:
LOG.warn(_LW("Invalid status, skipping IP address %s") %
fip['floating_ip_address'])
LOG.warning(_LW("Invalid status, skipping IP address %s") %
fip['floating_ip_address'])
continue
res_metadata = self._form_metadata_for_fip(fip)
yield sample.Sample(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment