From 22d1461721578c4756e6919cc190eaa4b4b46c61 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 27 May 2014 09:39:00 +0200 Subject: [PATCH] use LOG instead of logger as name for the Logger object Change-Id: I2997a33b1039dd4ab4b28b16f87d200bec9bfad7 --- ceilometer/network/floatingip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.