Make 'too busy' an error in logs

This commit is contained in:
Jake 2015-07-16 17:52:16 -05:00
parent b1cdf61e4b
commit c2e2a98b82

View File

@ -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;
} }