MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / parse_extended_debugging

Function parse_extended_debugging

src/main.cpp:238–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void 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" {

Callers 1

mainFunction · 0.85

Calls 1

get_category_nameFunction · 0.85

Tested by

no test coverage detected