Skip to content

Commit 60d35a9

Browse files
Henrique Satohsato03
authored andcommitted
Change old logs
1 parent 168ae92 commit 60d35a9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/src/main/java/com/cloud/alert/AlertManagerImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,8 @@ private void generateEmailAlert(DataCenterVO dc, HostPodVO pod, ClusterVO cluste
688688
}
689689

690690
try {
691-
if (logger.isDebugEnabled()) {
692-
logger.debug(String.format("Sending alert with subject [%s] and content [%s].", msgSubject, msgContent));
693-
}
694-
sendAlert(alertType, dc, pod, cluster, msgSubject, msgContent);
691+
logger.debug("Sending alert with subject [{}] and content [{}].", msgSubject, msgContent);
692+
sendAlert(alertType, dc.getId(), podId, clusterId, msgSubject, msgContent);
695693
} catch (Exception ex) {
696694
logger.error("Exception in CapacityChecker", ex);
697695
}

0 commit comments

Comments
 (0)