summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-03-10 15:07:54 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-03-10 15:16:18 +0100
commitd1f6deaf99c95318f7ef3130775848cba6646095 (patch)
tree9814f6faa024a51dca66197570152a4f60eb19be /src
parentfc8a2e123444834a8e48e2b8076e112d4b1155cb (diff)
downloadjustbuild-d1f6deaf99c95318f7ef3130775848cba6646095.tar.gz
just-mr: do not unnecessarily forward log-limit
The forwarding of the log-limit argument is only useful, if the value is different from the default.
Diffstat (limited to 'src')
-rw-r--r--src/other_tools/just_mr/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp
index bedda552..50f70b9a 100644
--- a/src/other_tools/just_mr/main.cpp
+++ b/src/other_tools/just_mr/main.cpp
@@ -1299,10 +1299,12 @@ void DefaultReachableRepositories(
cmd.emplace_back(log_file.string());
}
}
- cmd.emplace_back("--log-limit");
- cmd.emplace_back(
- std::to_string(static_cast<std::underlying_type<LogLevel>::type>(
- arguments.log.log_limit)));
+ if (arguments.log.log_limit != kDefaultLogLevel) {
+ cmd.emplace_back("--log-limit");
+ cmd.emplace_back(
+ std::to_string(static_cast<std::underlying_type<LogLevel>::type>(
+ arguments.log.log_limit)));
+ }
if (arguments.log.plain_log) {
cmd.emplace_back("--plain-log");
}