Fixed Bug: Remove Logs
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Default": "Debug",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user