feat: log
This commit is contained in:
@@ -82,7 +82,7 @@ class TelegramWebhookController extends Controller
|
||||
private function webhookLog(string $level, string $message, array $context = []): void
|
||||
{
|
||||
try {
|
||||
Log::{$level}($message, $context);
|
||||
Log::channel('telegram')->{$level}($message, $context);
|
||||
} catch (Throwable) {
|
||||
error_log($message.' '.json_encode($context, JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user