This commit is contained in:
syuilo 2022-02-03 02:41:22 +09:00
parent 5e198381d3
commit 435945d09d
7 changed files with 19 additions and 16 deletions

View file

@ -114,9 +114,9 @@ export async function sendEmail(to: string, subject: string, html: string, text:
</html>`,
});
logger.info('Message sent: %s', info.messageId);
} catch (e) {
logger.error(e);
throw e;
logger.info(`Message sent: ${info.messageId}`);
} catch (err) {
logger.error(err as Error);
throw err;
}
}