Skip to content

Commit ea77b41

Browse files
author
Adam Spiers
committed
Reduce logging of host hypervisor capabilities to DEBUG level
While the results of invoking libvirt's getCapabilities() API call get deliberately logged at INFO level[0], doing the same for getDomainCapabilities() is one bridge too far, because we call it once per (architecture, default_machine_type) tuple. So heed the suggestions of Stephen and Eric[1] and reduce it to DEBUG level. [0] See Ica0dccbfbff89829a7e631adaaf2cde13c449773 at https://review.opendev.org/#/c/158334/ [1] https://review.opendev.org/#/c/655268/3/nova/virt/libvirt/host.py@777 Change-Id: Idb4c4380c32f78d639f41cb1b5204578e1a19cd3
1 parent 37ccd7e commit ea77b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nova/virt/libvirt/host.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,8 @@ def _get_domain_capabilities(self, emulator_bin, arch, machine_type,
775775
virt_type,
776776
flags
777777
)
778-
LOG.info("Libvirt host hypervisor capabilities for arch=%s and "
779-
"machine_type=%s:\n%s", arch, machine_type, xmlstr)
778+
LOG.debug("Libvirt host hypervisor capabilities for arch=%s and "
779+
"machine_type=%s:\n%s", arch, machine_type, xmlstr)
780780
caps = vconfig.LibvirtConfigDomainCaps()
781781
caps.parse_str(xmlstr)
782782
return caps

0 commit comments

Comments
 (0)