From 1d2db2765efe77006d67c5ca71a4c0122b9e4af8 Mon Sep 17 00:00:00 2001 From: lpescher Date: Tue, 19 May 2015 22:14:35 -0600 Subject: [PATCH] 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 --- src/util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.cpp b/src/util.cpp index 74a714b40..b667acc5e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -217,6 +217,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; }