rpc: make logging method reject "0" category and correct the help text

Current logging RPC method documentation claims to accept "0" and "none"
categories, but the "none" argument is actually rejected and the "0"
argument is ignored. Update the implementation to refuse both
categories, and remove the help text claiming to support them.
This commit is contained in:
Vasil Dimov
2024-04-03 12:57:25 +02:00
parent 8c6f3bf163
commit 74dd33cb0a
2 changed files with 0 additions and 5 deletions

View File

@@ -219,10 +219,6 @@ bool GetLogCategory(BCLog::LogFlags& flag, std::string_view str)
flag = BCLog::ALL;
return true;
}
if (str == "0") {
flag = BCLog::NONE;
return true;
}
auto it = LOG_CATEGORIES_BY_STR.find(str);
if (it != LOG_CATEGORIES_BY_STR.end()) {
flag = it->second;