From 2444455e0882d9985fea05ef01a3300f4b3e9695 Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 24 Dec 2024 13:15:08 +0100 Subject: [PATCH] add the header.xlang in log to understand why sometimes some request was not in appropriate language --- apxtri/middlewares/checkHeaders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apxtri/middlewares/checkHeaders.js b/apxtri/middlewares/checkHeaders.js index b34e969..45f7ab4 100755 --- a/apxtri/middlewares/checkHeaders.js +++ b/apxtri/middlewares/checkHeaders.js @@ -107,8 +107,8 @@ 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`; - if (log) console.log(currentmod, info); - console.log(Date.now(),currentmod, req.header("xtribe"),info); + console.log(currentmod, info); + //console.log(Date.now(),currentmod, req.header("xtribe"),info); header.xlang = "en"; } //set anonymous profil