Grabbing additional data fields for windows event logs (#3183)

This commit is contained in:
Nick Anderson 2017-04-19 16:09:49 -07:00 committed by GitHub
parent 6ba48afef6
commit e3ebc47498

View File

@ -66,7 +66,9 @@ void parseTree(const pt::ptree& tree, std::map<std::string, std::string>& res) {
if (nodeName.empty()) {
nodeName = node.first.empty() ? "DataElement" : node.first;
}
res[nodeName] = node.second.data();
res[nodeName] = res[nodeName] == ""
? node.second.data()
: res[nodeName] + "\r\n" + node.second.data();
parseTree(node.second, res);
}
}