fix: log more info on sendEmail error (#13813)

* add from and subject to error message

* remove comment

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina Wollendorfer
2024-02-21 20:59:45 +00:00
committed by GitHub
co-authored by CarinaWolli
parent d102268b33
commit b7ed314be2
+8 -1
View File
@@ -65,7 +65,14 @@ export default class BaseEmail {
}
}
)
).catch((e) => console.error("sendEmail", e));
).catch((e) =>
console.error(
"sendEmail",
`from: ${"from" in payloadWithUnEscapedSubject ? payloadWithUnEscapedSubject.from : ""}`,
`subject: ${"subject" in payloadWithUnEscapedSubject ? payloadWithUnEscapedSubject.subject : ""}`,
e
)
);
return new Promise((resolve) => resolve("send mail async"));
}
protected getMailerOptions() {