Update log categories in help message and in decomposition of "dash" category (#2792)
* Add missing log categories to help message and combined "dash" category * Sort alphabetically
This commit is contained in:
parent
7b76e7abb2
commit
aae985746c
@ -553,7 +553,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
||||
strUsage += HelpMessageOpt("-watchquorums=<n>", strprintf("Watch and validate quorum communication (default: %u)", llmq::DEFAULT_WATCH_QUORUMS));
|
||||
}
|
||||
std::string debugCategories = "addrman, alert, bench, cmpctblock, coindb, db, http, leveldb, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, "
|
||||
"dash (or specifically: gobject, instantsend, keepass, masternode, mnpayments, mnsync, privatesend, spork)"; // Don't translate these and qt below
|
||||
"dash (or specifically: chainlocks, gobject, instantsend, keepass, llmq, masternode, mnpayments, mnsync, privatesend, spork)"; // Don't translate these and qt below
|
||||
if (mode == HMM_BITCOIN_QT)
|
||||
debugCategories += ", qt";
|
||||
strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " +
|
||||
|
15
src/util.cpp
15
src/util.cpp
@ -281,13 +281,16 @@ bool LogAcceptCategory(const char* category)
|
||||
// thread_specific_ptr automatically deletes the set when the thread ends.
|
||||
// "dash" is a composite category enabling all Dash-related debug output
|
||||
if(ptrCategory->count(std::string("dash"))) {
|
||||
ptrCategory->insert(std::string("privatesend"));
|
||||
ptrCategory->insert(std::string("instantsend"));
|
||||
ptrCategory->insert(std::string("masternode"));
|
||||
ptrCategory->insert(std::string("spork"));
|
||||
ptrCategory->insert(std::string("keepass"));
|
||||
ptrCategory->insert(std::string("mnpayments"));
|
||||
ptrCategory->insert(std::string("chainlocks"));
|
||||
ptrCategory->insert(std::string("gobject"));
|
||||
ptrCategory->insert(std::string("instantsend"));
|
||||
ptrCategory->insert(std::string("keepass"));
|
||||
ptrCategory->insert(std::string("llmq"));
|
||||
ptrCategory->insert(std::string("masternode"));
|
||||
ptrCategory->insert(std::string("mnpayments"));
|
||||
ptrCategory->insert(std::string("mnsync"));
|
||||
ptrCategory->insert(std::string("spork"));
|
||||
ptrCategory->insert(std::string("privatesend"));
|
||||
}
|
||||
} else {
|
||||
ptrCategory.reset(new std::set<std::string>());
|
||||
|
Loading…
Reference in New Issue
Block a user