feat: log

This commit is contained in:
hashbro
2026-09-12 20:58:19 +08:00
parent 29bf0f5cca
commit c273813b71
8 changed files with 59 additions and 10 deletions
@@ -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));
}