summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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");
}