| 164 | |
| 165 | |
| 166 | void EventProcessor::AnalyzeEventStr(std::string eventStr) { |
| 167 | nlohmann::json j; |
| 168 | try |
| 169 | { |
| 170 | j = nlohmann::json::parse(eventStr); |
| 171 | } |
| 172 | catch (const nlohmann::json::exception& e) |
| 173 | { |
| 174 | LOG_A(LOG_WARNING, "JSON Parser Exception msg: %s", e.what()); |
| 175 | LOG_A(LOG_WARNING, "JSON Parser Exception event: %s", eventStr.c_str()); |
| 176 | return; |
| 177 | } |
| 178 | |
| 179 | AnalyzeEventJson(j); |
| 180 | } |
| 181 | |
| 182 | |
| 183 | void EventProcessor::AnalyzeNewEvents(std::vector<std::string> events) { |