diff options
author | Jon Atack <jon@atack.com> | 2023-05-12 00:58:35 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-06-14 08:27:46 -0600 |
commit | a9c295888b82c86ef4629aa2d9061ea152b48f20 (patch) | |
tree | 95deaed578ab6dac62097b6d814854689198798f /src/init.cpp | |
parent | b0c3995393c592fa96306e077ed64e65d5400882 (diff) |
init: raise on invalid loglevel config option
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 37aaeb3029..c343a107e6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -952,7 +952,8 @@ bool AppInitParameterInteraction(const ArgsManager& args, bool use_syscall_sandb // ********************************************************* Step 3: parameter-to-internal-flags auto result = init::SetLoggingCategories(args); if (!result) return InitError(util::ErrorString(result)); - init::SetLoggingLevel(args); + result = init::SetLoggingLevel(args); + if (!result) return InitError(util::ErrorString(result)); nConnectTimeout = args.GetIntArg("-timeout", DEFAULT_CONNECT_TIMEOUT); if (nConnectTimeout <= 0) { |