Change compute agent recurring logs from INFO to DEBUG

Repeatedly logging all the data about each instance is too verbose
for the INFO level, it should use the DEBUG level.

Change-Id: I5420c74e364790b2ff0a875337d5cd4d002ab5b5
Closes-Bug: #1373427
This commit is contained in:
Nejc Saje 2014-09-24 09:40:51 -04:00
parent 637095c236
commit 5c82b11206
2 changed files with 8 additions and 8 deletions

View File

@ -31,13 +31,13 @@ class CPUPollster(plugin.ComputePollster):
def get_samples(self, manager, cache, resources):
for instance in resources:
LOG.info(_('checking instance %s'), instance.id)
LOG.debug(_('checking instance %s'), instance.id)
instance_name = util.instance_name(instance)
try:
cpu_info = manager.inspector.inspect_cpus(instance_name)
LOG.info(_("CPUTIME USAGE: %(instance)s %(time)d"),
{'instance': instance.__dict__,
'time': cpu_info.time})
LOG.debug(_("CPUTIME USAGE: %(instance)s %(time)d"),
{'instance': instance.__dict__,
'time': cpu_info.time})
cpu_num = {'cpu_number': cpu_info.number}
yield util.make_sample_from_instance(
instance,

View File

@ -73,10 +73,10 @@ class _Base(plugin.ComputePollster):
per_device_write_bytes = {}
per_device_write_requests = {}
for disk, info in inspector.inspect_disks(instance_name):
LOG.info(self.DISKIO_USAGE_MESSAGE,
instance, disk.device, info.read_requests,
info.read_bytes, info.write_requests,
info.write_bytes, info.errors)
LOG.debug(self.DISKIO_USAGE_MESSAGE,
instance, disk.device, info.read_requests,
info.read_bytes, info.write_requests,
info.write_bytes, info.errors)
r_bytes += info.read_bytes
r_requests += info.read_requests
w_bytes += info.write_bytes