fix: timeout Seq #15
@ -26,7 +26,8 @@ namespace YTExtractor.Logging.Configuration
|
|||||||
.Enrich.WithEnvironmentName()
|
.Enrich.WithEnvironmentName()
|
||||||
//.Enrich.WithMachineName()
|
//.Enrich.WithMachineName()
|
||||||
.Enrich.WithProperty("Application", "YTExtractor")
|
.Enrich.WithProperty("Application", "YTExtractor")
|
||||||
.Enrich.WithProperty("Workspace", workspace);
|
.Enrich.WithProperty("Workspace", workspace)
|
||||||
|
.WriteTo.Console();
|
||||||
|
|
||||||
// Testa a conectividade com o Seq se estiver configurado
|
// Testa a conectividade com o Seq se estiver configurado
|
||||||
if (!string.IsNullOrEmpty(seqServer))
|
if (!string.IsNullOrEmpty(seqServer))
|
||||||
@ -100,7 +101,7 @@ namespace YTExtractor.Logging.Configuration
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
using var httpClient = new HttpClient();
|
using var httpClient = new HttpClient();
|
||||||
httpClient.Timeout = TimeSpan.FromSeconds(2);
|
httpClient.Timeout = TimeSpan.FromSeconds(10);
|
||||||
var response = httpClient.GetAsync($"{seqUrl}/api").Result;
|
var response = httpClient.GetAsync($"{seqUrl}/api").Result;
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user