mirror of
https://github.com/outline/outline.git
synced 2026-11-30 09:00:18 +03:00
chore: Always log outgoing emails in development (#8700)
This commit is contained in:
1 parent
7c41c1360b
commit
619c56102c
1 file changed
+6
-3
@@ -122,11 +122,11 @@ export class Mailer {
|
||||
sendMail = async (data: SendMailOptions): Promise<void> => {
|
||||
const { transporter } = this;
|
||||
|
||||
if (!transporter) {
|
||||
Logger.info(
|
||||
if (env.isDevelopment) {
|
||||
Logger.debug(
|
||||
"email",
|
||||
[
|
||||
`Attempted to send email but no transport configured.`,
|
||||
`Sending email:`,
|
||||
``,
|
||||
`--------------`,
|
||||
`From: ${data.from.address}`,
|
||||
@@ -138,6 +138,9 @@ export class Mailer {
|
||||
data.text,
|
||||
].join("\n")
|
||||
);
|
||||
}
|
||||
if (!transporter) {
|
||||
Logger.warn("No mail transport available");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user