From 49ef28a5bf9b3f7c88a2f4abbda038fa13ff7fbb Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Tue, 21 Jul 2026 04:34:21 +0200 Subject: [PATCH] Added warn log for failed e-mail renders. --- src/alerts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/alerts.js b/src/alerts.js index 2ff633f..2d624ec 100755 --- a/src/alerts.js +++ b/src/alerts.js @@ -515,6 +515,7 @@ async function sendEmailAlerts() { const triggers = markedNotifications .map((notification) => ({ + notificationId: notification.id, scene: scenesBySceneId[notification.scene_id] || null, posterUrl: getImagePath(scenesBySceneId[notification.scene_id]?.poster), user: usersByUserId[notification.user_id] || null, @@ -556,6 +557,7 @@ async function sendEmailAlerts() { }; } catch (error) { + logger.warn(`Failed to render e-mail for '${user.username}' with scenes ${userTriggers.map((trigger) => `${trigger.notificationId}: ${trigger.scene.id}`)}: ${error.message}`); return null; } })).then((allEmails) => allEmails.filter(Boolean));