Added session changer, more comments, BREAKING: renamed noLogging to noHttpLogging

This commit is contained in:
Sebastian Seedorf
2020-11-18 22:14:33 +01:00
parent 33214c83e8
commit cfa8c654b0
10 changed files with 83 additions and 15 deletions

View File

@@ -39,7 +39,7 @@ exports.HttpLogger = (req, res, next) => {
const status = colorFunction(res.statusCode.toString(10));
const method = req.method.toUpperCase().padEnd(6, " ");
const responseTime = (Date.now() - start).toString(10).padStart(3, " ");
if (!req.noLogging)
if (!req.noHttpLogging)
exports.Logger.http(`${status} ${method} ${responseTime}ms ${path}`);
end.apply(res, args);
};