From eeb9f1b02f5cf08a7d4a571c0bfd22a59e46fc0c Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 15 Sep 2024 04:30:44 -0400 Subject: [PATCH] Log more when redis increment fails --- src/routes/getStatus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getStatus.ts b/src/routes/getStatus.ts index e9bc940..f4c31bc 100644 --- a/src/routes/getStatus.ts +++ b/src/routes/getStatus.ts @@ -30,7 +30,7 @@ export async function getStatus(req: Request, res: Response, server: Server): Pr redisProcessTime = Date.now() - redisStartTime; return e; }).catch(e => /* istanbul ignore next */ { - Logger.error(`status: redis increment timed out ${e}`); + Logger.error(`status: redis increment timed out ${e}\nload: ${os.loadavg().slice(1)} with ${JSON.stringify(getRedisStats())}\n${JSON.stringify((db as Postgres)?.getStats?.())}`); return [-1]; }); statusRequests = numberRequests?.[0];