Merge "Log when appropriate if email delivery is skipped"

This commit is contained in:
Shawn Pearce
2013-04-22 17:41:51 +00:00
committed by Gerrit Code Review

View File

@@ -268,7 +268,7 @@ public abstract class OutgoingEmail {
protected boolean shouldSendMessage() {
if (body.length() == 0) {
// If we have no message body, don't send.
//
log.warn("Skipping delivery of email with no body");
return false;
}
@@ -276,7 +276,7 @@ public abstract class OutgoingEmail {
// If we have nobody to send this message to, then all of our
// selection filters previously for this type of message were
// unable to match a destination. Don't bother sending it.
//
log.info("Skipping delivery of email with no recipients");
return false;
}