increase threshold for long-respones-time warning

This commit is contained in:
HF 2022-09-07 13:39:11 +02:00
parent e74cfb76c4
commit f3a86ed544
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ export async function drawByOffsets(
}
const duration = Date.now() - startTime;
if (duration > 1000) {
if (duration > 2000) {
logger.warn(
// eslint-disable-next-line max-len
`Long response time of ${duration}ms for placing ${pxlCnt} pixels for user ${user.id || user.ip}`,

View File

@ -55,7 +55,7 @@ export default async (req, res, next) => {
const stime = Date.now();
chunk = await RedisCanvas.getChunk(c, x, y);
const dur = Date.now() - stime;
if (dur > 1000) {
if (dur > 2000) {
// eslint-disable-next-line max-len
logger.warn(`Long redis response times of ${dur}ms for chunk ${c}:${x},${y}`);
}