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:25:38 +01:00
parent 4b78f52e8c
commit e29926e109

View File

@ -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";