Skip to content

Commit

Permalink
Merge pull request #11393 from creative-commoners/pulls/5/fix-constru…
Browse files Browse the repository at this point in the history
…ctor

FIX Use correct contructor for HTTPOutputHandler
  • Loading branch information
GuySartorelli authored Sep 23, 2024
2 parents 6287b6e + e93dafb commit a81b785
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 a81b785

Please sign in to comment.