From e93dafb2fe79d107854ad7c93b6766e64404bfb8 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 19 Sep 2024 17:21:12 +1200 Subject: [PATCH] FIX Use correct contructor for HTTPOutputHandler --- src/Logging/HTTPOutputHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Logging/HTTPOutputHandler.php b/src/Logging/HTTPOutputHandler.php index 2479c9ad26a..0254bfaeb0f 100644 --- a/src/Logging/HTTPOutputHandler.php +++ b/src/Logging/HTTPOutputHandler.php @@ -4,6 +4,7 @@ use Monolog\Formatter\FormatterInterface; use Monolog\Handler\AbstractProcessingHandler; +use Monolog\Level; use Monolog\LogRecord; use SilverStripe\Control\Controller; use SilverStripe\Control\Director; @@ -34,9 +35,9 @@ class HTTPOutputHandler extends AbstractProcessingHandler */ private $cliFormatter = null; - public function __construct() + public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true) { - parent::__construct(); + parent::__construct($level, $bubble); Deprecation::withSuppressedNotice(function () { Deprecation::notice( '5.4.0',