don't throw exceptions when you can't add host

This commit is contained in:
edison 2010-08-20 20:19:21 -07:00
parent 6ef5530994
commit e2282ba800

View File

@ -264,7 +264,11 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
} catch (UnknownHostException e) {
s_logger.warn("Unable to resolve the host name", e);
return null;
} finally {
} catch (Exception e) {
s_logger.debug("other exceptions: " + e.toString());
return null;
}
finally {
if (conn != null) {
try{
Session.logout(conn);