DaanHoogland commented on code in PR #10042:
URL: https://github.com/apache/cloudstack/pull/10042#discussion_r1957134651
##########
engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java:
##########
@@ -1399,7 +1399,7 @@ private void processHostHealthCheckResult(Boolean
hostHealthCheckResult, long ho
}
if
(!BooleanUtils.toBoolean(EnableKVMAutoEnableDisable.valueIn(host.getClusterId())))
{
logger.debug("{} is disabled for the cluster {}, cannot
process the health check result " +
- "received for the host {}",
EnableKVMAutoEnableDisable.key(), host.getClusterId(), host);
+ "received for the {}",
EnableKVMAutoEnableDisable.key(), host.getClusterId(), host);
Review Comment:
```suggestion
"received for {}", EnableKVMAutoEnableDisable.key(),
host.getClusterId(), host);
```
##########
server/src/main/java/com/cloud/resource/ResourceManagerImpl.java:
##########
@@ -1840,9 +1840,9 @@ private void handleAutoEnableDisableKVMHost(boolean
autoEnableDisableKVMSetting,
_hostDetailsDao.update(hostDetail.getId(), hostDetail);
} else if (!isUpdateFromHostHealthCheck && hostDetail != null &&
Boolean.parseBoolean(hostDetail.getValue()) &&
resourceEvent == ResourceState.Event.Disable) {
- logger.info(String.format("The setting %s is enabled but the
host %s is manually set into %s state," +
+ logger.info("The setting {} is enabled but the {} is manually
set into {} state," +
Review Comment:
```suggestion
logger.info("The setting {} is enabled but {} is manually
set into {} state," +
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]