From 7ea7f5a9671c9c1bb74fa80825b918ddf6e0e188 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 2 Aug 2024 10:33:00 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07728=20Stop=20flooding=20error.log=20wit?= =?UTF-8?q?h=20low=20probability=20issues,=20and=20do=20not=20confuse=20th?= =?UTF-8?q?e=20root=20cause=20and=20the=20fact=20that=20the=20API=20is=20d?= =?UTF-8?q?eprecated.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Application/WebPage/WebPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/Application/WebPage/WebPage.php b/sources/Application/WebPage/WebPage.php index b984cd597..ae1e42ee5 100644 --- a/sources/Application/WebPage/WebPage.php +++ b/sources/Application/WebPage/WebPage.php @@ -919,7 +919,7 @@ class WebPage implements Page // Check if URI is absolute ("://" do allow any protocol), otherwise warn that it's a deprecated behavior if (false === stripos($sLinkedScriptAbsUrl, "://")) { - IssueLog::Warning("Linked script added to page via deprecated API with a non absolute URL, it may lead to it not being loaded and causing javascript errors.", null, [ + IssueLog::Debug("Linked script added to page with a non absolute URL, it may lead to it not being loaded and causing javascript errors. See alternatives WebPage::LinkScriptFromXXX", null, [ "linked_script_url" => $sLinkedScriptAbsUrl, "request_uri" => $_SERVER['REQUEST_URI'] ?? '' /* CLI */, ]); @@ -1188,7 +1188,7 @@ JS; // Check if URI is absolute ("://" do allow any protocol), otherwise warn that it's a deprecated behavior if (false === stripos($sLinkedStylesheet, "://")) { - IssueLog::Warning("Linked stylesheet added to page via deprecated API with a non absolute URL, it may lead to it not being loaded and causing visual glitches.", null, [ + IssueLog::Debug("Linked stylesheet added to page with a non absolute URL, it may lead to it not being loaded and causing visual glitches. See alternatives WebPage::LinkStylesheetFromXXX", null, [ "linked_stylesheet_url" => $sLinkedStylesheet, "request_uri" => $_SERVER['REQUEST_URI'] ?? '' /* CLI */, ]);