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:
parent
4f98f80c61
commit
61cf76b4f6
@ -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}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user