Skip to content

Commit b837624

Browse files
author
Henrique Sato
committed
Change old logs
1 parent 0cc0541 commit b837624

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,7 @@ private void generateEmailAlert(DataCenterVO dc, HostPodVO pod, ClusterVO cluste
645645
}
646646

647647
try {
648-
if (logger.isDebugEnabled()) {
649-
logger.debug(String.format("Sending alert with subject [%s] and content [%s].", msgSubject, msgContent));
650-
}
648+
logger.debug("Sending alert with subject [{}] and content [{}].", msgSubject, msgContent);
651649
sendAlert(alertType, dc.getId(), podId, clusterId, msgSubject, msgContent);
652650
} catch (Exception ex) {
653651
logger.error("Exception in CapacityChecker", ex);

0 commit comments

Comments
 (0)