1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Bugfix: use basUrl when logging actual request path

This commit is contained in:
ivaosthu 2017-10-12 09:19:56 +02:00
parent 4f98f80c61
commit 61cf76b4f6

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