mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Log more when redis increment fails
This commit is contained in:
@@ -30,7 +30,7 @@ export async function getStatus(req: Request, res: Response, server: Server): Pr
|
|||||||
redisProcessTime = Date.now() - redisStartTime;
|
redisProcessTime = Date.now() - redisStartTime;
|
||||||
return e;
|
return e;
|
||||||
}).catch(e => /* istanbul ignore next */ {
|
}).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];
|
return [-1];
|
||||||
});
|
});
|
||||||
statusRequests = numberRequests?.[0];
|
statusRequests = numberRequests?.[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user