This is an automated email from the ASF dual-hosted git repository.
lidongdai pushed a commit to branch dev-1.2.1
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev-1.2.1 by this push:
new 2051038 add log, don't swallow exception info (#1877)
2051038 is described below
commit 2051038bac44b390055a14376d9b24ffc5876307
Author: dailidong <[email protected]>
AuthorDate: Fri Jan 31 11:44:44 2020 +0800
add log, don't swallow exception info (#1877)
---
.../src/main/java/org/apache/dolphinscheduler/alert/utils/MailUtils.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/MailUtils.java
b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/MailUtils.java
index d6edde2..f1c470a 100644
---
a/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/MailUtils.java
+++
b/dolphinscheduler-alert/src/main/java/org/apache/dolphinscheduler/alert/utils/MailUtils.java
@@ -84,6 +84,7 @@ public class MailUtils {
MAIL_TEMPLATE = new Template("alert_mail_template", isr, cfg);
} catch (Exception e) {
MAIL_TEMPLATE = null;
+ logger.error(e.getMessage(),e);
} finally {
IOUtils.closeQuietly(isr);
}