From 1e5da1b95ef7b1e5207f19aceffdb586d426de85 Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 3 Apr 2023 02:00:00 +0200 Subject: [PATCH] Improve logging of mails during development mode --- src/util/mail.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/util/mail.ts b/src/util/mail.ts index 165fc81..6d25126 100644 --- a/src/util/mail.ts +++ b/src/util/mail.ts @@ -1,6 +1,6 @@ /* * server component for the TimeLimit App - * Copyright (C) 2019 - 2022 Jonas Lochmann + * Copyright (C) 2019 - 2023 Jonas Lochmann * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -72,7 +72,10 @@ function createMailTemplateSender (templateName: string) { // eslint-disable-next-line @typescript-eslint/no-explicit-any const data = (info as any).message - console.log(JSON.stringify(JSON.parse(data), null, 2)) + console.log(JSON.stringify({ + ...JSON.parse(data), + params + }, null, 2)) } resolve()