faec063887 log: Use Join() helper when listing log categories (MarcoFalke)
Pull request description:
This removes the global `ListLogCategories` and replaces it with a one-line member function `LogCategoriesString`, which just calls `Join`.
Should be a straightforward refactor to get rid of a few LOC.
ACKs for top commit:
laanwj:
ACK faec063887
promag:
ACK faec063887, I also think it's fine as it is (re https://github.com/bitcoin/bitcoin/pull/18669#discussion_r412944724).
Tree-SHA512: 2f51f9ce1246eda5630015f3a869e36953c7eb34f311baad576b92d7829e4e88051c6189436271cd0a13732a49698506345b446b98fd28e58edfb5b62169f1c9
gArgs.AddArg("-limitdescendantsize=<n>",strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).",DEFAULT_DESCENDANT_SIZE_LIMIT),ArgsManager::ALLOW_ANY|ArgsManager::DEBUG_ONLY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-limitdescendantsize=<n>",strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).",DEFAULT_DESCENDANT_SIZE_LIMIT),ArgsManager::ALLOW_ANY|ArgsManager::DEBUG_ONLY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-addrmantest","Allows to test address relay on localhost",ArgsManager::ALLOW_ANY|ArgsManager::DEBUG_ONLY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-addrmantest","Allows to test address relay on localhost",ArgsManager::ALLOW_ANY|ArgsManager::DEBUG_ONLY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-debug=<category>","Output debugging information (default: -nodebug, supplying <category> is optional). "
gArgs.AddArg("-debug=<category>","Output debugging information (default: -nodebug, supplying <category> is optional). "
"If <category> is not supplied or if <category> = 1, output all debugging information. <category> can be: "+ListLogCategories()+".",ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);
"If <category> is not supplied or if <category> = 1, output all debugging information. <category> can be: "+LogInstance().LogCategoriesString()+".",
gArgs.AddArg("-debugexclude=<category>",strprintf("Exclude debugging information for a category. Can be used in conjunction with -debug=1 to output debug logs for all categories except one or more specified categories."),ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-debugexclude=<category>",strprintf("Exclude debugging information for a category. Can be used in conjunction with -debug=1 to output debug logs for all categories except one or more specified categories."),ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-logips",strprintf("Include IP addresses in debug output (default: %u)",DEFAULT_LOGIPS),ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-logips",strprintf("Include IP addresses in debug output (default: %u)",DEFAULT_LOGIPS),ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-logtimestamps",strprintf("Prepend debug output with timestamp (default: %u)",DEFAULT_LOGTIMESTAMPS),ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);
gArgs.AddArg("-logtimestamps",strprintf("Prepend debug output with timestamp (default: %u)",DEFAULT_LOGTIMESTAMPS),ArgsManager::ALLOW_ANY,OptionsCategory::DEBUG_TEST);