From 17b002649e9f4a986e5dc95fec64f603bc5142c3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 9 Feb 2024 14:54:14 -0500 Subject: [PATCH] Add logging when too many active connections --- src/utils/redis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/redis.ts b/src/utils/redis.ts index c416146..035ede0 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -183,7 +183,7 @@ if (config.redis?.enabled) { const getRead = readClient?.get?.bind(readClient); exportClient.get = (key) => new Promise((resolve, reject) => { if (config.redis.maxConnections && activeRequests > config.redis.maxConnections) { - reject(new TooManyActiveConnectionsError("Too many active requests in general")); + reject(new TooManyActiveConnectionsError(`Too many active requests in general: ${activeRequests} over ${config.redis.maxConnections}`)); return; }