diff --git a/ceilometer/network/floatingip.py b/ceilometer/network/floatingip.py index 64ebd44f3..b2424a284 100644 --- a/ceilometer/network/floatingip.py +++ b/ceilometer/network/floatingip.py @@ -26,11 +26,11 @@ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import sample +LOG = log.getLogger(__name__) + class FloatingIPPollster(plugin.CentralPollster): - LOG = log.getLogger(__name__ + '.floatingip') - def _get_floating_ips(self): nv = nova_client.Client() return nv.floating_ip_get_all() @@ -42,7 +42,7 @@ class FloatingIPPollster(plugin.CentralPollster): def get_samples(self, manager, cache, resources=None): for ip in self._iter_floating_ips(cache): - self.LOG.info(_("FLOATING IP USAGE: %s") % ip.ip) + LOG.info(_("FLOATING IP USAGE: %s") % ip.ip) # FIXME (flwang) Now Nova API /os-floating-ips can't provide those # attributes were used by Ceilometer, such as project id, host. # In this fix, those attributes usage will be removed temporarily.