mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
Make 'too busy' an error in logs
This commit is contained in:
parent
b1cdf61e4b
commit
c2e2a98b82
@ -73,7 +73,7 @@ function requestHandler(req, res) {
|
|||||||
"Content-Type": "text/plain"
|
"Content-Type": "text/plain"
|
||||||
});
|
});
|
||||||
res.end("Server is over capacity :/");
|
res.end("Server is over capacity :/");
|
||||||
logging.warn("Too busy:", req.id, 503, Date.now() - req.start + "ms", "(error)");
|
logging.error("Too busy:", req.id, 503, Date.now() - req.start + "ms", "(error)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user