Skip to content

Commit

Permalink
FIX Use correct contructor for HTTPOutputHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 19, 2024
1 parent 6287b6e commit e93dafb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Logging/HTTPOutputHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit e93dafb

Please sign in to comment.