| 199 | } |
| 200 | |
| 201 | bool GetLogCategory(BCLog::LogFlags& flag, const std::string& str) |
| 202 | { |
| 203 | if (str == "") { |
| 204 | flag = BCLog::ALL; |
| 205 | return true; |
| 206 | } |
| 207 | const std::string &category = StrToUpper(str); |
| 208 | for (auto& categoryPair : LOG_CATEGORY_MAP) { |
| 209 | if (categoryPair.second == category) { |
| 210 | flag = categoryPair.first; |
| 211 | return true; |
| 212 | } |
| 213 | } |
| 214 | return false; |
| 215 | } |
| 216 | |
| 217 | std::string ListLogCategories() |
| 218 | { |
no test coverage detected