1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-31 01:16:01 +02:00

Bugfix: use basUrl when logging actual request path

This commit is contained in:
ivaosthu 2017-10-12 09:19:56 +02:00 committed by Ivar Conradi Østhus
parent 3e7098578b
commit 12ef0db1f1

View File

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