From 39201e561ffdc9192ca24cbab7c8ee7cf3626734 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Sat, 24 Jan 2026 18:35:19 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B4=D0=B5=D1=82=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8E=20=D0=BB=D0=BE=D0=B3=D0=BE=D0=B2=20Telegram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index 3cc24ad..2047936 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -66,6 +66,11 @@ builder.Logging.AddFilter("Quartz", LogLevel.Warning); if (!string.IsNullOrEmpty(tgChatId) && !string.IsNullOrEmpty(tgToken)) builder.Logging.AddTelegram(options => { + options.FormatterConfiguration = new X.Extensions.Logging.Telegram.Base.Configuration.FormatterConfiguration + { + IncludeException = true, + IncludeProperties = true, + }; options.ChatId = tgChatId; options.AccessToken = tgToken; options.FormatterConfiguration.UseEmoji = true; @@ -288,6 +293,8 @@ if (string.IsNullOrEmpty(preinstalledJwtToken)) await scheduler.TriggerJob(jobKey); } } +else + logger.LogInformation("Используем предустановленный токен из конфигурации"); app.UseSwagger(); app.UseSwaggerUI();