log response time

This commit is contained in:
jomo 2015-05-07 01:03:10 +02:00
parent fd18c70bec
commit 6f94af7a4a

View File

@ -29,7 +29,7 @@ module.exports = function(request, response, result) {
}); });
response.on("finish", function() { response.on("finish", function() {
logging.log(request.id, response.statusCode, "(" + (human_status[result.status] || "-") + ")"); logging.log(request.id, response.statusCode, headers["Response-Time"] + "ms", "(" + (human_status[result.status] || "-") + ")");
}); });
response.on("error", function(err) { response.on("error", function(err) {