use LOG instead of logger as name for the Logger object

Change-Id: I2997a33b1039dd4ab4b28b16f87d200bec9bfad7
This commit is contained in:
Christian Berendt 2014-05-27 09:39:00 +02:00
parent 70882f7cbe
commit 22d1461721

View File

@ -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.