Skip to content

Commit 321b329

Browse files
committed
exception names
1 parent 72c9d00 commit 321b329

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,17 +576,17 @@ protected AgentAttache notifyMonitorsOfConnection(final AgentAttache attache, fi
576576
monitor.second().processConnect(host, cmd[i], forRebalance);
577577
} catch (final ConnectionException ce) {
578578
if (ce.isSetupError()) {
579-
s_logger.warn("Monitor " + monitor.second().getClass().getSimpleName() + " says there is an error in the connect process for " + hostId + " due to " + e.getMessage());
579+
s_logger.warn("Monitor " + monitor.second().getClass().getSimpleName() + " says there is an error in the connect process for " + hostId + " due to " + ce.getMessage());
580580
handleDisconnectWithoutInvestigation(attache, Event.AgentDisconnected, true, true);
581581
throw ce;
582582
} else {
583-
s_logger.info("Monitor " + monitor.second().getClass().getSimpleName() + " says not to continue the connect process for " + hostId + " due to " + e.getMessage());
583+
s_logger.info("Monitor " + monitor.second().getClass().getSimpleName() + " says not to continue the connect process for " + hostId + " due to " + ce.getMessage());
584584
handleDisconnectWithoutInvestigation(attache, Event.ShutdownRequested, true, true);
585585
return attache;
586586
}
587-
} catch (final HypervisorVersionChangedException e) {
587+
} catch (final HypervisorVersionChangedException hvce) {
588588
handleDisconnectWithoutInvestigation(attache, Event.ShutdownRequested, true, true);
589-
throw new CloudRuntimeException("Unable to connect " + attache.getId(), e);
589+
throw new CloudRuntimeException("Unable to connect " + attache.getId(), hvce);
590590
} catch (final Exception e) {
591591
s_logger.error("Monitor " + monitor.second().getClass().getSimpleName() + " says there is an error in the connect process for " + hostId + " due to " + e.getMessage(), e);
592592
handleDisconnectWithoutInvestigation(attache, Event.AgentDisconnected, true, true);

0 commit comments

Comments
 (0)