mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Log response time limits
This commit is contained in:
parent
399bda869f
commit
2d751a0b21
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ if (config.redis?.enabled) {
|
|||
if (readResponseTime.length > maxStoredTimes) readResponseTime.shift();
|
||||
if (config.redis.stopWritingAfterResponseTime
|
||||
&& responseTime > config.redis.stopWritingAfterResponseTime) {
|
||||
Logger.error(`Hit response time limit at ${responseTime}ms`);
|
||||
lastResponseTimeLimit = Date.now();
|
||||
}
|
||||
}).catch((err) => {
|
||||
|
|
Loading…
Reference in a new issue