diff options
author | Jon Atack <jon@atack.com> | 2023-06-13 12:51:39 -0600 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-06-15 10:27:56 -0600 |
commit | 6cb1c66041ee14dbedad3aeeb90190ea5dddf917 (patch) | |
tree | fd2f2a57bc108dd86873f3ede36a29d2f8e24c0d | |
parent | 25478292726dd7208b22a8924c8f1fdeac5c33f5 (diff) | |
download | bitcoin-6cb1c66041ee14dbedad3aeeb90190ea5dddf917.tar.xz |
init: remove config option names from translated -loglevel strings
-rw-r--r-- | src/init/common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/common.cpp b/src/init/common.cpp index b9c19725b1..f3f7c696c5 100644 --- a/src/init/common.cpp +++ b/src/init/common.cpp @@ -66,13 +66,13 @@ util::Result<void> SetLoggingLevel(const ArgsManager& args) if (level_str.find_first_of(':', 3) == std::string::npos) { // user passed a global log level, i.e. -loglevel=<level> if (!LogInstance().SetLogLevel(level_str)) { - return util::Error{strprintf(_("Unsupported global logging level -loglevel=%s. Valid values: %s."), level_str, LogInstance().LogLevelsString())}; + return util::Error{strprintf(_("Unsupported global logging level %s=%s. Valid values: %s."), "-loglevel", level_str, LogInstance().LogLevelsString())}; } } else { // user passed a category-specific log level, i.e. -loglevel=<category>:<level> const auto& toks = SplitString(level_str, ':'); if (!(toks.size() == 2 && LogInstance().SetCategoryLogLevel(toks[0], toks[1]))) { - return util::Error{strprintf(_("Unsupported category-specific logging level -loglevel=%s. Expected -loglevel=<category>:<loglevel>. Valid categories: %s. Valid loglevels: %s."), level_str, LogInstance().LogCategoriesString(), LogInstance().LogLevelsString())}; + return util::Error{strprintf(_("Unsupported category-specific logging level %1$s=%2$s. Expected %1$s=<category>:<loglevel>. Valid categories: %3$s. Valid loglevels: %4$s."), "-loglevel", level_str, LogInstance().LogCategoriesString(), LogInstance().LogLevelsString())}; } } } |