aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpescher <lukas_078@yahoo.ca>2015-05-19 22:14:35 -0600
committerlpescher <lukas_078@yahoo.ca>2015-05-19 22:14:35 -0600
commitcb873862411e2e40aea8225ee85ce710958024dd (patch)
tree74e569df7bbf464bc032faf078c2118927e15da0
parentbe31ff7d8ddb86d4499c7619ac2ec3a59434a596 (diff)
downloadbitcoin-cb873862411e2e40aea8225ee85ce710958024dd.tar.xz
Make command line option to show all debugging consistent with similar options
Most people expect a value of 1 to enable all for command line arguments. However to do this for the -debug option you must type "-debug=". This has been changed to allow "-debug=1" as well as "-debug=" to enable all debug logging
-rw-r--r--src/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index bfb95c9044..33b5ee9500 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -208,6 +208,7 @@ bool LogAcceptCategory(const char* category)
// if not debugging everything and not debugging specific category, LogPrint does nothing.
if (setCategories.count(string("")) == 0 &&
+ setCategories.count(string("1")) == 0 &&
setCategories.count(string(category)) == 0)
return false;
}