added logging for failure to send mail
This commit is contained in:
parent
d074ee7e23
commit
f4ce41be20
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user