Added session changer, more comments, BREAKING: renamed noLogging to noHttpLogging
This commit is contained in:
@@ -47,7 +47,7 @@ export const HttpLogger: RequestHandler = (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)
|
||||
Logger.http(`${status} ${method} ${responseTime}ms ${path}`);
|
||||
end.apply(res, args);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user