Skip to content

Commit

Permalink
Update log categories in help message and in decomposition of "dash" …
Browse files Browse the repository at this point in the history
…category (#2792)

* Add missing log categories to help message and combined "dash" category

* Sort alphabetically
  • Loading branch information
UdjinM6 authored and codablock committed Mar 22, 2019
1 parent 7b76e7a commit aae9857
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) + ". " +
Expand Down
11 changes: 7 additions & 4 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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("chainlocks"));
ptrCategory->insert(std::string("gobject"));
ptrCategory->insert(std::string("instantsend"));
ptrCategory->insert(std::string("masternode"));
ptrCategory->insert(std::string("spork"));
ptrCategory->insert(std::string("keepass"));
ptrCategory->insert(std::string("llmq"));
ptrCategory->insert(std::string("masternode"));
ptrCategory->insert(std::string("mnpayments"));
ptrCategory->insert(std::string("gobject"));
ptrCategory->insert(std::string("mnsync"));
ptrCategory->insert(std::string("spork"));
ptrCategory->insert(std::string("privatesend"));
}
} else {
ptrCategory.reset(new std::set<std::string>());
Expand Down

0 comments on commit aae9857

Please sign in to comment.