Nir Soffer has uploaded a new change for review.
Change subject: vm: Decrease log spam for expected errors
......................................................................
vm: Decrease log spam for expected errors
Getting a libvirt error is not exceptional event that requires logging
an exception. This patch log such error as errors instead of exception.
Change-Id: I8405f74a0a17e8c3b330bd6110e58f900c38f7c3
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
M vdsm/vm.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/76/22576/1
diff --git a/vdsm/vm.py b/vdsm/vm.py
index 2d0cece..2732298 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -521,6 +521,9 @@
vmDrive.apparentsize, capacity, alloc, physical)
self._vm.extendDriveVolume(vmDrive)
+ except libvirt.libvirtError as e:
+ self._log.error("%s/%s: %s", vmDrive.domainID,
+ vmDrive.volumeID, e)
except Exception:
self._log.exception("%s/%s", vmDrive.domainID,
vmDrive.volumeID)
--
To view, visit
http://gerrit.ovirt.org/22576
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8405f74a0a17e8c3b330bd6110e58f900c38f7c3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.3
Gerrit-Owner: Nir Soffer <nsoffer(a)redhat.com>