From 8b3d3b31a192ea6ef5fa8be63a2477a67b5ed9fe Mon Sep 17 00:00:00 2001 From: "April P." Date: Sun, 16 Feb 2025 19:07:58 -0800 Subject: [PATCH] Log when records are being built out during hourly record generation --- MistWX-i2Me/TimedTasks.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/MistWX-i2Me/TimedTasks.cs b/MistWX-i2Me/TimedTasks.cs index fdc5f0f..5f2e227 100644 --- a/MistWX-i2Me/TimedTasks.cs +++ b/MistWX-i2Me/TimedTasks.cs @@ -87,14 +87,11 @@ public class TimedTasks Log.Info("Running hourly record collection"); - // TODO: This could probably be a better system, but this is the simplest implementation for this for the - // time being. - - // Implements suggestion #3 in the issue tracker. if (dataConfig.CurrentConditions) { + Log.Info($"Building CurrentConditions I2 record for {locations.Length} locations.."); List> obs = await new CurrentObservationsProduct().Populate(locations); string obsRecord = await new CurrentObsRecord().MakeRecord(obs); @@ -103,6 +100,7 @@ public class TimedTasks if (dataConfig.DailyForecast) { + Log.Info($"Building DailyForecast I2 record for {locations.Length} locations.."); List> dfs = await new DailyForecastProduct().Populate(locations); string dfsRecord = await new DailyForecastRecord().MakeRecord(dfs); sender.SendFile(dfsRecord, "storeData(QGROUP=__DailyForecast__,Feed=DailyForecast)"); @@ -110,6 +108,7 @@ public class TimedTasks if (dataConfig.HourlyForecast) { + Log.Info($"Building HourlyForecast I2 record for {locations.Length} locations.."); List> hfs = await new HourlyForecastProduct().Populate(locations); string hfsRecord = await new HourlyForecastRecord().MakeRecord(hfs); sender.SendFile(hfsRecord, "storeData(QGROUP=__HourlyForecast__,Feed=HourlyForecast)"); @@ -117,6 +116,7 @@ public class TimedTasks if (dataConfig.AirQuality) { + Log.Info($"Building AirQuality I2 record for {locations.Length} locations.."); List> aiqs = await new AirQualityProduct().Populate(locations); string aiqsRecord = await new AirQualityRecord().MakeRecord(aiqs); sender.SendFile(aiqsRecord, "storeData(QGROUP=__AirQuality__,Feed=AirQuality)"); @@ -124,6 +124,7 @@ public class TimedTasks if (dataConfig.PollenForecast) { + Log.Info($"Building PollenForecast I2 record for {locations.Length} locations.."); List> pfs = await new PollenForecastProduct().Populate(locations); string pfsRecord = await new PollenRecord().MakeRecord(pfs); sender.SendFile(pfsRecord, "storeData(QGROUP=__PollenForecast__,Feed=PollenForecast)"); @@ -131,6 +132,7 @@ public class TimedTasks if (dataConfig.HeatingAndCooling) { + Log.Info($"Building HeatingAndCooling I2 record for {locations.Length} locations.."); List> hcs = await new HeatingCoolingProduct().Populate(locations); string hcsRecord = await new HeatingCoolingRecord().MakeRecord(hcs); sender.SendFile(hcsRecord, "storeData(QGROUP=__HeatingAndCooling__,Feed=HeatingAndCooling)"); @@ -138,6 +140,7 @@ public class TimedTasks if (dataConfig.AchesAndPains) { + Log.Info($"Building AchesAndPains I2 record for {locations.Length} locations.."); List> acps = await new AchesPainProduct().Populate(locations); string acpsRecord = await new AchesPainRecord().MakeRecord(acps); sender.SendFile(acpsRecord, "storeData(QGROUP=__AchesAndPain__,Feed=AchesAndPain)"); @@ -145,6 +148,7 @@ public class TimedTasks if (dataConfig.Breathing) { + Log.Info($"Building Breathing I2 record for {locations.Length} locations.."); List> brs = await new BreathingProduct().Populate(locations); string brsRecord = await new BreathingRecord().MakeRecord(brs); sender.SendFile(brsRecord, "storeData(QGROUP=__Breathing__,Feed=Breathing)");