mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
init: remove config option names from translated -loglevel strings
This commit is contained in:
parent
2547829272
commit
6cb1c66041
1 changed files with 2 additions and 2 deletions
|
@ -66,13 +66,13 @@ util::Result<void> SetLoggingLevel(const ArgsManager& args)
|
||||||
if (level_str.find_first_of(':', 3) == std::string::npos) {
|
if (level_str.find_first_of(':', 3) == std::string::npos) {
|
||||||
// user passed a global log level, i.e. -loglevel=<level>
|
// user passed a global log level, i.e. -loglevel=<level>
|
||||||
if (!LogInstance().SetLogLevel(level_str)) {
|
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 {
|
} else {
|
||||||
// user passed a category-specific log level, i.e. -loglevel=<category>:<level>
|
// user passed a category-specific log level, i.e. -loglevel=<category>:<level>
|
||||||
const auto& toks = SplitString(level_str, ':');
|
const auto& toks = SplitString(level_str, ':');
|
||||||
if (!(toks.size() == 2 && LogInstance().SetCategoryLogLevel(toks[0], toks[1]))) {
|
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())};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue