entry: switch AdditionalData to dict
Clients have been switched to use AddtionalData2, which is a
dictionary. Move AdditionalData also to a dictionary so we
can stage a removal of AdditionalData2.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7cc9591895f219471ac098387f72a35c18e6c750
diff --git a/log_manager.cpp b/log_manager.cpp
index 7d54e12..b20443f 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -27,6 +27,7 @@
#include <future>
#include <iostream>
#include <map>
+#include <ranges>
#include <set>
#include <string>
#include <string_view>
@@ -308,7 +309,7 @@
bool Manager::isCalloutPresent(const Entry& entry)
{
- for (const auto& c : entry.additionalData())
+ for (const auto& c : std::views::keys(entry.additionalData()))
{
if (c.find("CALLOUT_") != std::string::npos)
{