diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-09 15:11:15 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-10 16:18:07 +0200 |
commit | 7ec3c01395304c47a8643610a4cfa7a9aa1f7b31 (patch) | |
tree | 929cd11d03f786549844284fdb9fda3d12b4df37 /src/other_tools/just_mr/launch.cpp | |
parent | c1bbcdb5cb3ff24163bf1105856dbe614684ee1f (diff) | |
download | justbuild-7ec3c01395304c47a8643610a4cfa7a9aa1f7b31.tar.gz |
Add just-mr command-line option to estrict log limit on stderr
Diffstat (limited to 'src/other_tools/just_mr/launch.cpp')
-rw-r--r-- | src/other_tools/just_mr/launch.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/launch.cpp b/src/other_tools/just_mr/launch.cpp index 12c9155c..1236d9f4 100644 --- a/src/other_tools/just_mr/launch.cpp +++ b/src/other_tools/just_mr/launch.cpp @@ -126,6 +126,12 @@ auto CallJust(std::optional<std::filesystem::path> const& config_file, std::to_string(static_cast<std::underlying_type<LogLevel>::type>( *log_args.log_limit))); } + if (log_args.restrict_stderr_log_limit) { + cmd.emplace_back("--restrict-stderr-log-limit"); + cmd.emplace_back( + std::to_string(static_cast<std::underlying_type<LogLevel>::type>( + *log_args.restrict_stderr_log_limit))); + } if (log_args.plain_log) { cmd.emplace_back("--plain-log"); } |