mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
log: Use Join() helper when listing log categories
This commit is contained in:
@@ -516,7 +516,7 @@ UniValue logging(const JSONRPCRequest& request)
|
||||
"When called with arguments, adds or removes categories from debug logging and return the lists above.\n"
|
||||
"The arguments are evaluated in order \"include\", \"exclude\".\n"
|
||||
"If an item is both included and excluded, it will thus end up being excluded.\n"
|
||||
"The valid logging categories are: " + ListLogCategories() + "\n"
|
||||
"The valid logging categories are: " + LogInstance().LogCategoriesString() + "\n"
|
||||
"In addition, the following are available as category names with special meanings:\n"
|
||||
" - \"all\", \"1\" : represent all logging categories.\n"
|
||||
" - \"none\", \"0\" : even if other logging categories are specified, ignore all of them.\n"
|
||||
@@ -568,8 +568,7 @@ UniValue logging(const JSONRPCRequest& request)
|
||||
}
|
||||
|
||||
UniValue result(UniValue::VOBJ);
|
||||
std::vector<CLogCategoryActive> vLogCatActive = ListActiveLogCategories();
|
||||
for (const auto& logCatActive : vLogCatActive) {
|
||||
for (const auto& logCatActive : LogInstance().LogCategoriesList()) {
|
||||
result.pushKV(logCatActive.category, logCatActive.active);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user