Skip to content

Commit 66f5ea5

Browse files
committed
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.
1 parent d44c7aa commit 66f5ea5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Halo/HaloRenderer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use function array_walk_recursive;
1717
use function assert;
18+
use function error_log;
1819
use function explode;
1920
use function get_class;
2021
use function highlight_string;
@@ -63,6 +64,8 @@ public function __construct(
6364
public function render(ResourceObject $ro)
6465
{
6566
if (! $this->isEableHalo()) {
67+
error_log('Debug: ?_halo=1 query enables Halo. See https://bearsunday.github.io/manuals/1.0/en/html.html');
68+
6669
return $this->renderer->render($ro);
6770
}
6871

0 commit comments

Comments
 (0)