CLOUDSTACK-1603: Management server .log Java Exceptions are displayed with Alerts

This commit is contained in:
Sanjay Tripathi 2013-05-08 14:17:20 +05:30 committed by Pranav Saxena
parent fa9987753c
commit 3aed20c9d2

View File

@ -56,7 +56,7 @@ public class DefaultHostListener implements HypervisorHostListener {
}
if (!answer.getResult()) {
String msg = "Add host failed due to ModifyStoragePoolCommand failed" + answer.getDetails();
String msg = "Unable to attach storage pool" + poolId + " to the host" + hostId;
alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST, pool.getDataCenterId(), pool.getPodId(), msg, msg);
throw new CloudRuntimeException("Unable establish connection from storage head to storage pool " + pool.getId() + " due to " + answer.getDetails() + pool.getId());
}