From 12ef0db1f1856a3f2e5302970e3351dd5ffc5a30 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Thu, 12 Oct 2017 09:19:56 +0200 Subject: [PATCH] Bugfix: use basUrl when logging actual request path --- lib/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app.js b/lib/app.js index 3970894bb5..6b1600724a 100644 --- a/lib/app.js +++ b/lib/app.js @@ -37,7 +37,7 @@ module.exports = function(config) { app.use( responseTime((req, res, time) => { const timingInfo = { - path: req.path, + path: req.baseUrl, method: req.method, statusCode: res.statusCode, time, @@ -57,7 +57,7 @@ module.exports = function(config) { if (config.enableRequestLogger) { app.use((req, res, next) => { next(); - logger.info(`${res.statusCode} ${req.method} ${req.path}`); + logger.info(`${res.statusCode} ${req.method} ${req.baseUrl}`); }); }