Skip to content

Commit 6cb1c66

Browse files
committed
init: remove config option names from translated -loglevel strings
1 parent 2547829 commit 6cb1c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init/common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ util::Result<void> SetLoggingLevel(const ArgsManager& args)
6666
if (level_str.find_first_of(':', 3) == std::string::npos) {
6767
// user passed a global log level, i.e. -loglevel=<level>
6868
if (!LogInstance().SetLogLevel(level_str)) {
69-
return util::Error{strprintf(_("Unsupported global logging level -loglevel=%s. Valid values: %s."), level_str, LogInstance().LogLevelsString())};
69+
return util::Error{strprintf(_("Unsupported global logging level %s=%s. Valid values: %s."), "-loglevel", level_str, LogInstance().LogLevelsString())};
7070
}
7171
} else {
7272
// user passed a category-specific log level, i.e. -loglevel=<category>:<level>
7373
const auto& toks = SplitString(level_str, ':');
7474
if (!(toks.size() == 2 && LogInstance().SetCategoryLogLevel(toks[0], toks[1]))) {
75-
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())};
75+
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())};
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)