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

Function ListLogCategories

src/logging.cpp:142–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142std::string ListLogCategories()
143{
144 std::string ret;
145 int outcount = 0;
146 for (const CLogCategoryDesc& category_desc : LogCategories) {
147 // Omit the special cases.
148 if (category_desc.flag != BCLog::NONE && category_desc.flag != BCLog::ALL) {
149 if (outcount != 0) ret += ", ";
150 ret += category_desc.category;
151 outcount++;
152 }
153 }
154 return ret;
155}
156
157std::vector<CLogCategoryActive> ListActiveLogCategories()
158{

Callers 2

SetupServerArgsFunction · 0.85
loggingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected