Log response time limits

This commit is contained in:
Ajay 2023-02-04 14:13:49 -05:00
parent 399bda869f
commit 2d751a0b21

View file

@ -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) => {