From e4c68936a0ad9fd80f77c13f6711402d48e037dc Mon Sep 17 00:00:00 2001 From: odain Date: Mon, 29 Nov 2021 09:23:05 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04125=20-=20log=20error=20in=20an=20apc?= =?UTF-8?q?=20channel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/dict.class.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/dict.class.inc.php b/core/dict.class.inc.php index 18b88f2ba..629094a52 100644 --- a/core/dict.class.inc.php +++ b/core/dict.class.inc.php @@ -152,7 +152,7 @@ class Dict if (!array_key_exists($sLangCode, self::$m_aData)) { - IssueLog::Error("Cannot find $sLangCode in dictionnaries. default labels displayed", LogChannels::APC); + IssueLog::Warning("Cannot find $sLangCode in dictionnaries. default labels displayed"); // It may happen, when something happens before the dictionaries get loaded return $sStringCode; } @@ -276,8 +276,9 @@ class Dict if (self::$m_aData[$sLangCode] === false) { unset(self::$m_aData[$sLangCode]); } else if (! is_array(self::$m_aData[$sLangCode])) { - IssueLog::Warning("APCu corrupted data (with $sLangCode dictionnary). APCu configuration and running version should be troubleshooted..."); - //N°4125: we dont fix issue on iTop side. just add some log to be aware of it and fix APCu instead. + // N°4125: we dont fix dictionnary corrupted cache (on iTop side). + // but we log an error in a dedicated channel to let itop administrator be aware of a potential APCu issue to fix. + IssueLog::Error("APCu corrupted data (with $sLangCode dictionnary). APCu configuration and running version should be troubleshooted...", LogChannels::APC); $bResult = true; } else { $bResult = true;