We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0233fda commit 313a356Copy full SHA for 313a356
src/TelegramHandler.php
@@ -65,7 +65,7 @@ public function __construct($level)
65
public function write(array $record): void
66
{
67
if(!$this->botToken || !$this->chatId) {
68
- return;
+ throw new \InvalidArgumentException('Bot token or chat id is not defined for Telegram logger');
69
}
70
71
// trying to make request and send notification
@@ -79,7 +79,7 @@ public function write(array $record): void
79
])
80
);
81
} catch (Exception $exception) {
82
-
+ \Log::channel('single')->error($exception->getMessage());
83
84
85
0 commit comments