Add debug log statements to archive warning loading

This commit is contained in:
Dan Paulat 2025-04-26 09:47:50 -05:00
parent 65e3a66750
commit 8dde98d2a9
4 changed files with 29 additions and 6 deletions

View file

@ -462,11 +462,16 @@ void TextEventManager::Impl::LoadArchives(
}
}
std::vector<std::shared_ptr<awips::TextProductFile>> products {};
// Load the load list
auto loadView =
loadListEntries | ranges::views::transform([](const auto& entry)
{ return entry.productId_; });
auto products = provider::IemApiProvider::LoadTextProducts(loadView);
if (!loadListEntries.empty())
{
auto loadView = loadListEntries |
ranges::views::transform([](const auto& entry)
{ return entry.productId_; });
products = provider::IemApiProvider::LoadTextProducts(loadView);
}
// Process loaded products
for (auto& product : products)