mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-11 09:42:17 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user