From 621f893f12fab0911774d0d37a5bbac31a4bafe1 Mon Sep 17 00:00:00 2001 From: anthony Date: Thu, 13 Jan 2011 17:26:04 -0800 Subject: [PATCH] bug 7986: should be fixed by 6e6e8ff8763a21fc71a3d3b950a05c8643c55c0a, this patch only remove some unneccesary backtrace status 7986: resolved fixed --- .../hypervisor/xen/resource/CitrixResourceBase.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java index a774745c493..560e294d980 100644 --- a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java +++ b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java @@ -4340,13 +4340,9 @@ public abstract class CitrixResourceBase implements ServerResource { protected VDI getVDIbyUuid(Connection conn, String uuid) { try { return VDI.getByUuid(conn, uuid); - } catch (XenAPIException e) { - String msg = "VDI getByUuid for uuid: " + uuid + " failed due to " + e.toString(); - s_logger.warn(msg, e); - throw new CloudRuntimeException(msg, e); } catch (Exception e) { - String msg = "VDI getByUuid for uuid: " + uuid + " failed due to " + e.getMessage(); - s_logger.warn(msg, e); + String msg = "Catch Exception " + e.getClass().getName() + " :VDI getByUuid for uuid: " + uuid + " failed due to " + e.toString(); + s_logger.debug(msg); throw new CloudRuntimeException(msg, e); } } @@ -4541,8 +4537,6 @@ public abstract class CitrixResourceBase implements ServerResource { try { vdi = getVDIbyUuid(conn, volumeUUID); } catch (Exception e) { - String msg = "getVDIbyUuid for " + volumeUUID + " failed due to " + e.toString(); - s_logger.warn(msg); return new Answer(cmd, true, "Success"); } Set vbds = null;