mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
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
This commit is contained in:
@@ -208,6 +208,7 @@ bool LogAcceptCategory(const char* category)
|
|||||||
|
|
||||||
// if not debugging everything and not debugging specific category, LogPrint does nothing.
|
// if not debugging everything and not debugging specific category, LogPrint does nothing.
|
||||||
if (setCategories.count(string("")) == 0 &&
|
if (setCategories.count(string("")) == 0 &&
|
||||||
|
setCategories.count(string("1")) == 0 &&
|
||||||
setCategories.count(string(category)) == 0)
|
setCategories.count(string(category)) == 0)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user