From 6ba18fc3ad7705027088fddd81d77f3bbc58dfc4 Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 24 Dec 2024 13:14:51 +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 c6f918b..b34e969 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 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";