| 125 | }; |
| 126 | |
| 127 | bool 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 | |
| 142 | std::string ListLogCategories() |
| 143 | { |
no outgoing calls
no test coverage detected