From 66f5ea529694bce7ed6d9596bf3189f2b5e50e3c Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 20 Apr 2024 13:44:13 +0900 Subject: [PATCH] Add error log to HaloRenderer's render method This is a NOTICE message for when HalModule is unintentionally installed and you are not aware of it. --- src/Halo/HaloRenderer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Halo/HaloRenderer.php b/src/Halo/HaloRenderer.php index 1dc7bdd..7cf6e93 100644 --- a/src/Halo/HaloRenderer.php +++ b/src/Halo/HaloRenderer.php @@ -15,6 +15,7 @@ use function array_walk_recursive; use function assert; +use function error_log; use function explode; use function get_class; use function highlight_string; @@ -63,6 +64,8 @@ public function __construct( public function render(ResourceObject $ro) { if (! $this->isEableHalo()) { + error_log('Debug: ?_halo=1 query enables Halo. See https://bearsunday.github.io/manuals/1.0/en/html.html'); + return $this->renderer->render($ro); }