From bea13b4424f78b62e46b1e616cd2cb5948b51793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Thu, 20 Nov 2014 15:48:56 +0100 Subject: [PATCH] Log errors when fetching .xva images --- libtisbackup/backup_xva.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libtisbackup/backup_xva.py b/libtisbackup/backup_xva.py index f9a8980..a7a00b8 100755 --- a/libtisbackup/backup_xva.py +++ b/libtisbackup/backup_xva.py @@ -150,10 +150,11 @@ class backup_xva(backup_generic): urllib.urlretrieve(url, filename_temp) urllib.urlcleanup() - except: + except Exception as e: + self.logger.error("[%s] error when fetching snap: %s", "tisbackup-%s"%(vdi_name), e) if os.path.exists(filename_temp): os.unlink(filename_temp) - raise + raise finally: if self.str2bool(halt_vm) == False: