Skip to content

Commit cb87386

Browse files
committed
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
1 parent be31ff7 commit cb87386

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ bool LogAcceptCategory(const char* category)
208208

209209
// if not debugging everything and not debugging specific category, LogPrint does nothing.
210210
if (setCategories.count(string("")) == 0 &&
211+
setCategories.count(string("1")) == 0 &&
211212
setCategories.count(string(category)) == 0)
212213
return false;
213214
}

0 commit comments

Comments
 (0)