szaszm commented on code in PR #1651:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1651#discussion_r1319434091
##########
libminifi/src/c2/C2Agent.cpp:
##########
@@ -686,6 +686,25 @@ C2Payload C2Agent::bundleDebugInfo(std::map<std::string,
std::unique_ptr<io::Inp
throw C2DebugBundleError("Error while writing file '" + filename + "'
into the debug bundle");
}
}
+ if (auto node_reporter = node_reporter_.lock()) {
+ constexpr const char* MANIFEST_FILE_NAME = "manifest.json";
+ auto reported_manifest = node_reporter->getAgentManifest();
+ state::response::SerializedResponseNode manifest;
+ manifest.name = std::move(reported_manifest.name);
+ manifest.children = std::move(reported_manifest.serialized_nodes);
+ manifest.array = reported_manifest.is_array;
+ std::string manifest_str = manifest.to_pretty_string();
+ std::ofstream{"/home/adam/Desktop/manifest.json", std::ios::binary} <<
manifest_str;
Review Comment:
debug leftover?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]