Source:
<code>public void onNomadCommit(CommitMessage message, AcceptRejectResponse response, NomadChangeInfo changeInfo) { if (response.isAccepted()) { DynamicConfigNomadChange dynamicConfigNomadChange = (DynamicConfigNomadChange) changeInfo.getNomadChange(); LOGGER.info("Nomad change committed: {}", message.getChangeUuid(), dynamicConfigNomadChange.getSummary()); List<? extends DynamicConfigNomadChange> nomadChanges = MultiSettingNomadChange.extractChanges(dynamicConfigNomadChange); synchronized (this) { for (DynamicConfigNomadChange nomadChange : nomadChanges) { Cluster upcomingCluster = nomadChange.apply(upcomingNodeContext.getCluster()); upcomingNodeContext = upcomingNodeContext.withCluster(upcomingCluster).orElseGet(upcomingNodeContext::alone); if (nomadChange.canApplyAtRuntime(upcomingNodeContext.getNodeName())) { Cluster runtimeCluster = nomadChange.apply(runtimeNodeContext.getCluster()); runtimeNodeContext = runtimeNodeContext.withCluster(runtimeCluster).orElseGet(runtimeNodeContext::alone); LOGGER.info("New cluster configuration: {}{}", lineSeparator(), clusterProperties(runtimeNodeContext)); } else { LOGGER.info("Pending cluster configuration: {}{}", lineSeparator(), clusterProperties(upcomingNodeContext)); } <START> } <END> } if (runtimeNodeContext.equals(upcomingNodeContext)) { LOGGER.info("New cluster configuration: {}{}", lineSeparator(), clusterProperties(runtimeNodeContext)); } else { LOGGER.info("Pending cluster configuration: {}{}", lineSeparator(), clusterProperties(upcomingNodeContext)); } } else { LOGGER.warn("Nomad change failed to commit: {}", message.getChangeUuid(), response); } listeners.forEach(c -> c.onNomadCommit(message, response, changeInfo)); }</code><technical_language>logged right line 278 logging ? for line 280</technical_language>

Target:
public void onNomadCommit(CommitMessage message, AcceptRejectResponse response, NomadChangeInfo changeInfo) { if (response.isAccepted()) { DynamicConfigNomadChange dynamicConfigNomadChange = (DynamicConfigNomadChange) changeInfo.getNomadChange(); LOGGER.info("Nomad change committed: {}", message.getChangeUuid(), dynamicConfigNomadChange.getSummary()); List<? extends DynamicConfigNomadChange> nomadChanges = MultiSettingNomadChange.extractChanges(dynamicConfigNomadChange); synchronized (this) { for (DynamicConfigNomadChange nomadChange : nomadChanges) { Cluster upcomingCluster = nomadChange.apply(upcomingNodeContext.getCluster()); upcomingNodeContext = upcomingNodeContext.withCluster(upcomingCluster).orElseGet(upcomingNodeContext::alone); if (nomadChange.canApplyAtRuntime(upcomingNodeContext.getNodeName())) { Cluster runtimeCluster = nomadChange.apply(runtimeNodeContext.getCluster()); runtimeNodeContext = runtimeNodeContext.withCluster(runtimeCluster).orElseGet(runtimeNodeContext::alone); } } } if (runtimeNodeContext.equals(upcomingNodeContext)) { LOGGER.info("New cluster configuration: {}{}", lineSeparator(), clusterProperties(runtimeNodeContext)); } else { LOGGER.info("Pending cluster configuration: {}{}", lineSeparator(), clusterProperties(upcomingNodeContext)); } } else { LOGGER.warn("Nomad change failed to commit: {}", message.getChangeUuid(), response); } listeners.forEach(c -> c.onNomadCommit(message, response, changeInfo)); }