From 19cef8b4af4e48a8be85ea22137ac12818751912 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 12 Aug 2024 22:22:35 +0200 Subject: [PATCH] impr: add req.method to dev slowdown log !nuf --- backend/src/api/routes/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/api/routes/index.ts b/backend/src/api/routes/index.ts index b4b6d9f29..86eec0bc5 100644 --- a/backend/src/api/routes/index.ts +++ b/backend/src/api/routes/index.ts @@ -123,7 +123,9 @@ function applyDevApiRoutes(app: Application): void { app.use(async (req, res, next) => { const slowdown = (await getLiveConfiguration()).dev.responseSlowdownMs; if (slowdown > 0) { - Logger.info(`Simulating ${slowdown}ms delay for ${req.path}`); + Logger.info( + `Simulating ${slowdown}ms delay for ${req.method} ${req.path}` + ); await new Promise((resolve) => setTimeout(resolve, slowdown)); } next();