[libvirt] [PATCH 2/7] Refactor code that skips logging of error messages