diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-03-10 15:07:54 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-03-10 15:16:18 +0100 |
commit | d1f6deaf99c95318f7ef3130775848cba6646095 (patch) | |
tree | 9814f6faa024a51dca66197570152a4f60eb19be /src | |
parent | fc8a2e123444834a8e48e2b8076e112d4b1155cb (diff) | |
download | justbuild-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.cpp | 10 |
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"); } |