| 236 | } |
| 237 | |
| 238 | void parse_extended_debugging(const std::vector<std::string>& categories) |
| 239 | { |
| 240 | for (const auto& cat : categories) |
| 241 | { |
| 242 | size_t idx = 0; |
| 243 | const size_t total = (size_t)wf::log::logging_category::TOTAL; |
| 244 | for (; idx < total; idx++) |
| 245 | { |
| 246 | if (get_category_name((wf::log::logging_category)idx) == cat) |
| 247 | { |
| 248 | LOGD("Enabling debugging category \"", cat, "\""); |
| 249 | wf::log::enabled_categories.set(idx, 1); |
| 250 | break; |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | if (idx == total) |
| 255 | { |
| 256 | LOGW("Unknown debugging category \"", cat, "\""); |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | // Override assert() handler to be more useful and print a trace. |
| 262 | // extern "C" { |
no test coverage detected