mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-09 16:52:13 +01:00
Log more when redis increment fails
This commit is contained in:
parent
8ba68e1b4c
commit
eeb9f1b02f
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue