From ab7c1f34d6212c68b7da89392b826e90eaf269ad Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Wed, 20 Aug 2014 14:00:29 +0200 Subject: [PATCH] kvm: Do not print the whole exception when pool is not found in libvirt This causes the logs to be filled with Exceptions which aren't nice for users to read --- .../com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java index e9c588e81fc..90608c251e7 100644 --- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java +++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java @@ -390,7 +390,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor { return pool; } catch (LibvirtException e) { - s_logger.debug("can't get storage pool", e); + s_logger.debug("Could not find storage pool " + uuid + " in libvirt"); throw new CloudRuntimeException(e.toString(), e); } }