add the header.xlang in log to understand why sometimes some request was not in appropriate language
This commit is contained in:
parent
7b0058e7a5
commit
6ba18fc3ad
@ -106,7 +106,7 @@ const checkHeaders = (req, res, next) => {
|
||||
});
|
||||
}
|
||||
if (!conf.api.languages.includes(header.xlang)) {
|
||||
const info="warning language requested 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(Date.now(),currentmod, req.header("xtribe"),info);
|
||||
header.xlang = "en";
|
||||
|
Loading…
x
Reference in New Issue
Block a user