Merge "Change compute agent recurring logs from INFO to DEBUG"
This commit is contained in:
commit
94ebf00429
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user