mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
log response time
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user