Fixed Bug: Remove Logs

This commit is contained in:
2025-07-18 18:48:44 -03:00
parent 134c9399e9
commit 24a6fc3849
4 changed files with 3 additions and 10 deletions

View File

@@ -76,11 +76,6 @@ namespace Mercados.Infrastructure.DataFetchers
if (!hayCambios)
{
_logger.LogInformation("No se encontraron cambios en los datos de {SourceName}. No se requiere actualización.", SourceName);
// --- LOG DE DEPURACIÓN ---
// Imprime una muestra de los datos viejos y nuevos para ver por qué los considera iguales
_logger.LogDebug("Datos Viejos (DB): {Viejo}", cotizacionesViejas.FirstOrDefault() != null ? System.Text.Json.JsonSerializer.Serialize(cotizacionesViejas.FirstOrDefault()) : "N/A");
_logger.LogDebug("Datos Nuevos (Web): {Nuevo}", cotizacionesNuevas.FirstOrDefault() != null ? System.Text.Json.JsonSerializer.Serialize(cotizacionesNuevas.FirstOrDefault()) : "N/A");
return (true, "Datos sin cambios.");
}
}

View File

@@ -84,8 +84,6 @@ namespace Mercados.Worker
utcNow = DateTime.UtcNow;
var nowInArgentina = TimeZoneInfo.ConvertTimeFromUtc(utcNow, _argentinaTimeZone);
_logger.LogDebug("Tick del planificador. Hora actual (AR): {NowInArgentina}. Próximo AgroRun: {NextAgroRun}", nowInArgentina, _nextAgroRun);
// Tarea de actualización de Feriados (semanal)
if (_nextHolidaysRun.HasValue && utcNow >= _nextHolidaysRun.Value)
{

View File

@@ -1,7 +1,7 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Default": "Debug",
"Microsoft.Hosting.Lifetime": "Information"
}
}

View File

@@ -1,7 +1,7 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
@@ -10,7 +10,7 @@
"DefaultConnection": ""
},
"Schedules": {
"MercadoAgroganadero": "*/15 * * * *",
"MercadoAgroganadero": "0 11,15,18,21 * * 1-5",
"BCR": "30 11 * * 1-5",
"Bolsas": "10 11-17 * * 1-5",
"Holidays": "0 2 * * 1"