add the header.xlang in log to understand why sometimes some request was not in appropriate language

This commit is contained in:
philc 2024-12-24 13:15:08 +01:00
parent 6ba18fc3ad
commit 2444455e08

View File

@ -107,8 +107,8 @@ const checkHeaders = (req, res, next) => {
} }
if (!conf.api.languages.includes(header.xlang)) { 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`;
if (log) console.log(currentmod, info); console.log(currentmod, info);
console.log(Date.now(),currentmod, req.header("xtribe"),info); //console.log(Date.now(),currentmod, req.header("xtribe"),info);
header.xlang = "en"; header.xlang = "en";
} }
//set anonymous profil //set anonymous profil