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();