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

* add from and subject to error message

* remove comment

---------

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2024-02-21 20:59:45 +00:00
1 parent d102268b33
commit b7ed314be2
1 file changed
+8 -1
+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() {