added logging for failure to send mail

This commit is contained in:
nordmif 2020-04-09 18:41:43 +03:00 committed by Andrew Shvayka
parent d074ee7e23
commit f4ce41be20

View File

@ -277,6 +277,7 @@ public class DefaultMailService implements MailService {
} else {
message = exception.getMessage();
}
log.warn("Unable to send mail: {}", message);
return new ThingsboardException(String.format("Unable to send mail: %s", message),
ThingsboardErrorCode.GENERAL);
}