MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetLogCategory

Function GetLogCategory

src/logging.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125};
126
127bool GetLogCategory(BCLog::LogFlags& flag, const std::string& str)
128{
129 if (str == "") {
130 flag = BCLog::ALL;
131 return true;
132 }
133 for (const CLogCategoryDesc& category_desc : LogCategories) {
134 if (category_desc.category == str) {
135 flag = category_desc.flag;
136 return true;
137 }
138 }
139 return false;
140}
141
142std::string ListLogCategories()
143{

Callers 2

EnableCategoryMethod · 0.85
DisableCategoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected