Added session changer, more comments, BREAKING: renamed noLogging to noHttpLogging
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user