Remove CLOUDSTACK-3513 debugging messages.

This commit is contained in:
Min Chen 2013-07-22 16:15:20 -07:00
parent 0fb3286cb1
commit db8b9ea53a
3 changed files with 3 additions and 16 deletions

View File

@ -191,8 +191,9 @@ public class DefaultEndPointSelector implements EndPointSelector {
// we can arbitrarily pick one ssvm to do that task
List<HostVO> ssAHosts = listUpAndConnectingSecondaryStorageVmHost(dcId);
if (ssAHosts == null || ssAHosts.isEmpty()) {
s_logger.info("No running ssvm is found, so command will be sent to LocalHostEndPoint");
return LocalHostEndpoint.getEndpoint(); // use local host as endpoint in
// case of no ssvm existing
// case of no ssvm existing
}
Collections.shuffle(ssAHosts);
HostVO host = ssAHosts.get(0);

View File

@ -337,26 +337,14 @@ public abstract class AgentAttache {
checkAvailability(req.getCommands());
long seq = req.getSequence();
if (s_logger.isDebugEnabled()) {
s_logger.debug("Request seq: " + seq);
}
if (listener != null) {
registerListener(seq, listener);
} else if (s_logger.isDebugEnabled()) {
s_logger.debug(log(seq, "Routed from " + req.getManagementServerId()));
}
if (s_logger.isDebugEnabled()) {
s_logger.debug("waiting to send " + seq);
}
synchronized(this) {
try {
if (s_logger.isDebugEnabled()) {
s_logger.debug("entering synchronize block for sending " + seq);
}
if (isClosed()) {
throw new AgentUnavailableException("The link to the agent has been closed", _id);
}

View File

@ -538,9 +538,7 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
}
Request req = new Request(hostId, _nodeId, cmds, commands.stopOnError(), true);
req.setSequence(agent.getNextSequence());
if (s_logger.isDebugEnabled()) {
s_logger.debug("AgentManager sending request");
}
agent.send(req, listener);
return req.getSequence();
}