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
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ab7c1f34 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ab7c1f34 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ab7c1f34 Branch: refs/heads/saml2 Commit: ab7c1f34d6212c68b7da89392b826e90eaf269ad Parents: 1ed0fe4 Author: Wido den Hollander <w...@widodh.nl> Authored: Wed Aug 20 14:00:29 2014 +0200 Committer: Wido den Hollander <w...@widodh.nl> Committed: Wed Aug 20 14:00:29 2014 +0200 ---------------------------------------------------------------------- .../com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ab7c1f34/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java ---------------------------------------------------------------------- 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 e9c588e..90608c2 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); } }