mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Improve logging of mails during development mode
This commit is contained in:
+5
-2
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* server component for the TimeLimit App
|
* 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
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* 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
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const data = (info as any).message
|
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()
|
resolve()
|
||||||
|
|||||||
Reference in New Issue
Block a user