mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add logging when too many active connections
This commit is contained in:
parent
a74189b287
commit
17b002649e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue