Skip to content

Commit 04e5a44

Browse files
committed
change log statements
1 parent 155665a commit 04e5a44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ private void processHostHealthCheckResult(Boolean hostHealthCheckResult, long ho
13991399
}
14001400
if (!BooleanUtils.toBoolean(EnableKVMAutoEnableDisable.valueIn(host.getClusterId()))) {
14011401
logger.debug("{} is disabled for the cluster {}, cannot process the health check result " +
1402-
"received for the host {}", EnableKVMAutoEnableDisable.key(), host.getClusterId(), host.getName());
1402+
"received for the {}", EnableKVMAutoEnableDisable.key(), host.getClusterId(), host);
14031403
return;
14041404
}
14051405

server/src/main/java/com/cloud/resource/ResourceManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,9 +1840,9 @@ private void handleAutoEnableDisableKVMHost(boolean autoEnableDisableKVMSetting,
18401840
_hostDetailsDao.update(hostDetail.getId(), hostDetail);
18411841
} else if (!isUpdateFromHostHealthCheck && hostDetail != null &&
18421842
Boolean.parseBoolean(hostDetail.getValue()) && resourceEvent == ResourceState.Event.Disable) {
1843-
logger.info("The setting {} is enabled but the host {} is manually set into {} state," +
1843+
logger.info("The setting {} is enabled but the {} is manually set into {} state," +
18441844
"ignoring future auto enabling of the host based on health check results",
1845-
AgentManager.EnableKVMAutoEnableDisable.key(), host.getName(), resourceEvent);
1845+
AgentManager.EnableKVMAutoEnableDisable.key(), host, resourceEvent);
18461846
hostDetail.setValue(Boolean.FALSE.toString());
18471847
_hostDetailsDao.update(hostDetail.getId(), hostDetail);
18481848
} else if (hostDetail == null) {

0 commit comments

Comments
 (0)