summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/operation.cpp
diff options
context:
space:
mode:
authorapachee <[email protected]>2024-05-24 20:47:38 +0300
committerapachee <[email protected]>2024-05-24 20:58:06 +0300
commit3e42aa91c70358fdd3ec39d0ac23072fc230b209 (patch)
tree422612a54143006d874a3997b1ef10efe34da552 /yt/cpp/mapreduce/client/operation.cpp
parentb45547676013a5d43cd0072a85643326e686b6fc (diff)
YT-21308: Add redirect_stdout_to_stderr flag for C++ client
Adds redirect_stdout_to_stderr spec option for operations that allows writing to stdout as if it was stderr. 6a8ac5f21955a79848d86f72715628c7b8bb65c4
Diffstat (limited to 'yt/cpp/mapreduce/client/operation.cpp')
-rw-r--r--yt/cpp/mapreduce/client/operation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp
index ade0f339b78..496b2f57234 100644
--- a/yt/cpp/mapreduce/client/operation.cpp
+++ b/yt/cpp/mapreduce/client/operation.cpp
@@ -756,7 +756,8 @@ void BuildUserJobFluently(
.DoFor(userJobSpec.JobProfilers_, [&] (TFluentList list, const auto& jobProfiler) {
list.Item().Value(BuildJobProfilerSpec(jobProfiler));
})
- .EndList();
+ .EndList()
+ .Item("redirect_stdout_to_stderr").Value(preparer.ShouldRedirectStdoutToStderr());
}
template <typename T>