Redirect stderr from pod

This commit is contained in:
Michiel Borkent 2020-05-07 11:42:44 +02:00
parent 787c13b304
commit 1915c22ad0

View file

@ -100,7 +100,7 @@
([ctx pod-spec _opts]
(let [pod-spec (if (string? pod-spec) [pod-spec] pod-spec)
pb (ProcessBuilder. ^java.util.List pod-spec)
_ (.redirectErrorStream pb true)
_ (.redirectError pb java.lang.ProcessBuilder$Redirect/INHERIT)
p (.start pb)
stdin (.getOutputStream p)
stdout (.getInputStream p)