From 3dafe0d9df25723e95cccb83d0d3fedbe376e750 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Thu, 26 Jun 2025 10:21:42 +0000 Subject: [PATCH] debug: logging in repeat-recent --- api-renamed/repeat-recent.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api-renamed/repeat-recent.js b/api-renamed/repeat-recent.js index 888e3b5b..9f6eeed8 100644 --- a/api-renamed/repeat-recent.js +++ b/api-renamed/repeat-recent.js @@ -6,11 +6,20 @@ export default async (req, res) => { res.send({ error: "Method Not Allowed" }); return; } + + console.log("Repeating recent requests..."); + try { await repeatRecentRequests(); res.statusCode = 200; res.send({ message: "Recent requests repeated successfully." }); } catch (error) { + console.error( + "Error repeating recent requests:", + error, + JSON.stringify(error), + ); + res.statusCode = 500; res.send({ error: error.message || "Internal Server Error" }); }