diff --git a/lib/server.js b/lib/server.js index d2fb64b..c5ba91c 100644 --- a/lib/server.js +++ b/lib/server.js @@ -67,11 +67,13 @@ function requestHandler(req, res) { var local_path = req.url.path_list[0]; logging.log(req.id, req.method, req.url.href); + toobusy.maxLag(200); if (toobusy()) { res.writeHead(503, { "Content-Type": "text/plain" }); res.end("Server is over capaacity :/"); + logging.log(req.id, 503, Date.now() - req.start + "ms", "(error)"); return; }