commit 37bedd235ea78378a1884c523e30018b95baba22 Author: Radek Novacek rnovacek@redhat.com Date: Tue Jul 29 09:37:33 2014 +0200
Fix wrong logger usage when processing update errors
virtwho.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- diff --git a/virtwho.py b/virtwho.py index e313fb9..81f9c2a 100644 --- a/virtwho.py +++ b/virtwho.py @@ -155,13 +155,13 @@ class VirtWho(object):
# Show the result of hypervisorCheckIn for fail in result['failedUpdate']: - logger.error("Error during update list of guests: %s", str(fail)) + self.logger.error("Error during update list of guests: %s", str(fail)) for updated in result['updated']: guests = [x['guestId'] for x in updated['guestIds']] - logger.info("Updated host: %s with guests: [%s]", updated['uuid'], ", ".join(guests)) + self.logger.info("Updated host: %s with guests: [%s]", updated['uuid'], ", ".join(guests)) for created in result['created']: guests = [x['guestId'] for x in created['guestIds']] - logger.info("Created host: %s with guests: [%s]", created['uuid'], ", ".join(guests)) + self.logger.info("Created host: %s with guests: [%s]", created['uuid'], ", ".join(guests))
def run(self): if self.options.background and self.options.virtType == "libvirt":
virt-who-devel@lists.fedorahosted.org