forked from ppfun/pixelplanet
increase threshold for long-respones-time warning
This commit is contained in:
parent
e74cfb76c4
commit
f3a86ed544
|
@ -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}`,
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user