From 390494c6064e8524d4fdc53fa24107cd4dc11be8 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro <71648276+ricarneiro@users.noreply.github.com> Date: Tue, 27 May 2025 22:36:03 -0300 Subject: [PATCH] fix: timeout Seq --- YTExtractor/Logging/Configuration/SerilogConfiguration.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/YTExtractor/Logging/Configuration/SerilogConfiguration.cs b/YTExtractor/Logging/Configuration/SerilogConfiguration.cs index 55c2d3e..606da66 100644 --- a/YTExtractor/Logging/Configuration/SerilogConfiguration.cs +++ b/YTExtractor/Logging/Configuration/SerilogConfiguration.cs @@ -26,7 +26,8 @@ namespace YTExtractor.Logging.Configuration .Enrich.WithEnvironmentName() //.Enrich.WithMachineName() .Enrich.WithProperty("Application", "YTExtractor") - .Enrich.WithProperty("Workspace", workspace); + .Enrich.WithProperty("Workspace", workspace) + .WriteTo.Console(); // Testa a conectividade com o Seq se estiver configurado if (!string.IsNullOrEmpty(seqServer)) @@ -100,7 +101,7 @@ namespace YTExtractor.Logging.Configuration try { using var httpClient = new HttpClient(); - httpClient.Timeout = TimeSpan.FromSeconds(2); + httpClient.Timeout = TimeSpan.FromSeconds(10); var response = httpClient.GetAsync($"{seqUrl}/api").Result; if (response.IsSuccessStatusCode) -- 2.45.2