From d1f6deaf99c95318f7ef3130775848cba6646095 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 10 Mar 2023 15:07:54 +0100 Subject: 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. --- src/other_tools/just_mr/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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::type>( - arguments.log.log_limit))); + if (arguments.log.log_limit != kDefaultLogLevel) { + cmd.emplace_back("--log-limit"); + cmd.emplace_back( + std::to_string(static_cast::type>( + arguments.log.log_limit))); + } if (arguments.log.plain_log) { cmd.emplace_back("--plain-log"); } -- cgit v1.2.3