From 12d320301f2cb17c8cf14b29b412b2b8969617f8 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 3 Aug 2015 23:23:30 +0300 Subject: [PATCH] add composite debug category dash=darksend+instantx+masternode+keepass+mnpayments+mnbudget --- src/init.cpp | 2 +- src/util.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 04de0bd209..54b9eb95f3 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -378,7 +378,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += " " + _("If is not supplied, output all debugging information.") + "\n"; strUsage += " " + _(" can be:\n"); strUsage += " addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, mempool, net,\n"; // Don't translate these and qt below - strUsage += " darksend, instantx, masternode, keepass, mnpayments, mnbudget"; // Don't translate these and qt below + strUsage += " dash (or specifically: darksend, instantx, masternode, keepass, mnpayments, mnbudget)"; // Don't translate these and qt below if (mode == HMM_BITCOIN_QT) strUsage += ", qt"; strUsage += ".\n"; diff --git a/src/util.cpp b/src/util.cpp index 19c2db10e4..ce46f57900 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -223,6 +223,15 @@ bool LogAcceptCategory(const char* category) const vector& categories = mapMultiArgs["-debug"]; ptrCategory.reset(new set(categories.begin(), categories.end())); // 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(string("dash"))) { + ptrCategory->insert(string("darksend")); + ptrCategory->insert(string("instantx")); + ptrCategory->insert(string("masternode")); + ptrCategory->insert(string("keepass")); + ptrCategory->insert(string("mnpayments")); + ptrCategory->insert(string("mnbudget")); + } } const set& setCategories = *ptrCategory.get();