diff options
author | Jon Atack <jon@atack.com> | 2023-05-12 00:23:21 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-06-14 08:27:46 -0600 |
commit | 4c3c19d943a0a4cf191495f6ebe9b964835607a4 (patch) | |
tree | 6e617860dbaca0735cb769c3c9ecf5337831336f /src/init/common.h | |
parent | 681ecac5c2d462920cd32636eec15599a9bcf424 (diff) |
init: raise on invalid debug/debugexclude config options
Diffstat (limited to 'src/init/common.h')
-rw-r--r-- | src/init/common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init/common.h b/src/init/common.h index 44c3a502ee..1c7bcf8671 100644 --- a/src/init/common.h +++ b/src/init/common.h @@ -8,12 +8,14 @@ #ifndef BITCOIN_INIT_COMMON_H #define BITCOIN_INIT_COMMON_H +#include <util/result.h> + class ArgsManager; namespace init { void AddLoggingArgs(ArgsManager& args); void SetLoggingOptions(const ArgsManager& args); -void SetLoggingCategories(const ArgsManager& args); +[[nodiscard]] util::Result<void> SetLoggingCategories(const ArgsManager& args); void SetLoggingLevel(const ArgsManager& args); bool StartLogging(const ArgsManager& args); void LogPackageVersion(); |