Skip to content

Commit

Permalink
Reintroduce support for Monolog ^2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Dec 24, 2024
1 parent 500f6f6 commit fcd5be7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Discord/Discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger as Monolog;
use Monolog\Level;
use Psr\Log\LoggerInterface;
use Ratchet\Client\Connector;
use Ratchet\Client\WebSocket;
Expand Down Expand Up @@ -1448,7 +1447,7 @@ protected function resolveOptions(array $options = []): array
$options['loop'] ??= Loop::get();

if (null === $options['logger']) {
$streamHandler = new StreamHandler('php://stdout', Level::Debug);
$streamHandler = new StreamHandler('php://stdout', Monolog::DEBUG);
$lineFormatter = new LineFormatter(null, null, true, true);
$streamHandler->setFormatter($lineFormatter);
$logger = new Monolog('DiscordPHP', [$streamHandler]);
Expand Down

0 comments on commit fcd5be7

Please sign in to comment.