diff --git a/plugins/metrics/src/main/java/org/apache/cloudstack/metrics/MetricsServiceImpl.java b/plugins/metrics/src/main/java/org/apache/cloudstack/metrics/MetricsServiceImpl.java index 320660417dc5..0a6e6e8f4fd7 100644 --- a/plugins/metrics/src/main/java/org/apache/cloudstack/metrics/MetricsServiceImpl.java +++ b/plugins/metrics/src/main/java/org/apache/cloudstack/metrics/MetricsServiceImpl.java @@ -789,7 +789,7 @@ public List listClusterMetrics(Pair line.matches(".*role:Primary .* promotion_score:0.*")); if (!healthy) { - s_logger.warn("checkDrbdEventsNowOutput: primary resource with promotion score==0; HA false"); + LOGGER.warn("checkDrbdEventsNowOutput: primary resource with promotion score==0; HA false"); } return healthy; } private boolean checkHostUpToDateAndConnected(String hostName) { - s_logger.trace(String.format("checkHostUpToDateAndConnected: %s/%s", localNodeName, hostName)); + LOGGER.trace(String.format("checkHostUpToDateAndConnected: %s/%s", localNodeName, hostName)); OutputInterpreter.AllLinesParser parser = new OutputInterpreter.AllLinesParser(); if (localNodeName.equalsIgnoreCase(hostName)) { @@ -331,7 +332,7 @@ private boolean checkHostUpToDateAndConnected(String hostName) { try { return checkDrbdSetupStatusOutput(parser.getLines(), hostName); } catch (JsonIOException | JsonSyntaxException e) { - s_logger.error("Error parsing drbdsetup status --json", e); + LOGGER.error("Error parsing drbdsetup status --json", e); } } return false; @@ -339,7 +340,7 @@ private boolean checkHostUpToDateAndConnected(String hostName) { @Override public Boolean vmActivityCheck(HAStoragePool pool, HostTO host, Duration activityScriptTimeout, String volumeUUIDListString, String vmActivityCheckPath, long duration) { - s_logger.trace(String.format("Linstor.vmActivityCheck: %s, %s", pool.getPoolIp(), host.getPrivateNetwork().getIp())); + LOGGER.trace(String.format("Linstor.vmActivityCheck: %s, %s", pool.getPoolIp(), host.getPrivateNetwork().getIp())); return checkingHeartBeat(pool, host); } } diff --git a/server/src/main/java/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java b/server/src/main/java/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java index a46c2fd81ea5..c09df8d86557 100644 --- a/server/src/main/java/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java +++ b/server/src/main/java/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java @@ -305,9 +305,7 @@ private void appendSourceNatIpToBootArgs(final VirtualMachineProfile profile) { List vpcIps = _ipAddressDao.listByAssociatedVpc(router.getVpcId(), true); if (CollectionUtils.isNotEmpty(vpcIps)) { buf.append(String.format(" source_nat_ip=%s", vpcIps.get(0).getAddress().toString())); - if (s_logger.isDebugEnabled()) { - s_logger.debug("The final Boot Args for " + profile + ": " + buf); - } + logger.debug("The final Boot Args for " + profile + ": " + buf); } } }