Compare commits

..

2 Commits

Author SHA1 Message Date
42d937f1af Merge pull request 'fix: timeout Seq' (#15) from release/V1.0.0 into main
All checks were successful
Build and Deploy ASP.NET API / build-and-deploy (push) Successful in 1m37s
Reviewed-on: http://git.carneiro.ddnsfree.com/ricardo/YTExtractor/pulls/15
2025-05-28 01:36:29 +00:00
Ricardo Carneiro
390494c606 fix: timeout Seq 2025-05-27 22:36:03 -03:00

View File

@ -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)