diff --git a/src/DiscordLogger/LogHandler.php b/src/DiscordLogger/LogHandler.php index 9ead6b4..c23395f 100644 --- a/src/DiscordLogger/LogHandler.php +++ b/src/DiscordLogger/LogHandler.php @@ -9,7 +9,6 @@ use MarvinLabs\DiscordLogger\Converters\SimpleRecordConverter; use Monolog\Handler\AbstractProcessingHandler; use Monolog\Logger as Monolog; -use Monolog\LogRecord; use RuntimeException; use function class_implements; @@ -30,10 +29,8 @@ public function __construct(Container $container, Repository $config, array $cha $this->recordToMessage = $this->createRecordConverter($container, $config); } - public function write(LogRecord $record): void + public function write(array $record): void { - $record = $record->toArray(); - foreach($this->recordToMessage->buildMessages($record) as $message) { $this->discord->send($message);