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}`); }); }