joseflauzino commented on a change in pull request #5649:
URL: https://github.com/apache/cloudstack/pull/5649#discussion_r742270648



##########
File path: server/src/main/java/com/cloud/alert/AlertManagerImpl.java
##########
@@ -706,14 +707,13 @@ public void sendAlert(AlertType alertType, long 
dataCenterId, Long podId, Long c
             newAlert.setName(alertType.getName());
             _alertDao.persist(newAlert);
         } else {
-            if (s_logger.isDebugEnabled()) {
-                    s_logger.debug("Have already sent: " + 
alert.getSentCount() + " emails for alert type '" + alertType + "' -- skipping 
send email");
-                }
+            logger.debug("Have already sent: " + alert.getSentCount() + " 
emails for alert type '" + alertType + "' -- skipping send email");

Review comment:
       @DaanHoogland My intention is to reduce cyclomatic complexity, as this 
check is only executed because we did not update to Log4J yet. Also, for this 
situation, the computing costs is irrelevant.




-- 
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]


Reply via email to