Skip to content

Commit

Permalink
Update mdlw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aaferna committed Jan 9, 2024
1 parent 8f42b86 commit 8faf587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/statsManager/mdlw.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ async function logAccess(req, res, next) {
const { method, originalUrl } = req;


if (originalUrl != '/management/stats/endpoints') {
if (originalUrl != '/management/stats/endpoints' && process.env.ENABLE_STATMANAGEMENT == 'TRUE') {

// Obtener la IP del cliente
let ip = req.ip;
Expand All @@ -28,6 +28,7 @@ async function logAccess(req, res, next) {
console.error('Error al registrar el acceso:', err);
}
}

next();
}

Expand Down

0 comments on commit 8faf587

Please sign in to comment.