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:
co-authored by
CarinaWolli
parent
d102268b33
commit
b7ed314be2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user