mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
log: sort LogCategoriesList and LogCategoriesString alphabetically
This commit is contained in:
@@ -138,9 +138,9 @@ namespace BCLog {
|
||||
bool DisableCategory(const std::string& str);
|
||||
|
||||
bool WillLogCategory(LogFlags category) const;
|
||||
/** Returns a vector of the log categories */
|
||||
/** Returns a vector of the log categories in alphabetical order. */
|
||||
std::vector<LogCategory> LogCategoriesList() const;
|
||||
/** Returns a string with the log categories */
|
||||
/** Returns a string with the log categories in alphabetical order. */
|
||||
std::string LogCategoriesString() const
|
||||
{
|
||||
return Join(LogCategoriesList(), ", ", [&](const LogCategory& i) { return i.category; });
|
||||
|
||||
Reference in New Issue
Block a user