From e29926e10985b60bb5deaff9f66059db625bce1e Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 24 Dec 2024 13:25:38 +0100 Subject: [PATCH] add the header.xlang in log to understand why sometimes some request was not in appropriate language --- apxtri/middlewares/checkHeaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apxtri/middlewares/checkHeaders.js b/apxtri/middlewares/checkHeaders.js index 45f7ab4..69570af 100755 --- a/apxtri/middlewares/checkHeaders.js +++ b/apxtri/middlewares/checkHeaders.js @@ -106,7 +106,7 @@ const checkHeaders = (req, res, next) => { }); } if (!conf.api.languages.includes(header.xlang)) { - const info=`warning language requested _${header.xlang}_ does not exist force to english`; + const info=`warning language requested _${header.xlang}_ does not exist force to english, requested with ${req.method} - ${req.headers.host} ${req.originalUrl}`; console.log(currentmod, info); //console.log(Date.now(),currentmod, req.header("xtribe"),info); header.xlang = "en";