summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo
diff options
context:
space:
mode:
authorLester Solbakken <lesters@oath.com>2022-03-10 15:03:01 +0100
committerLester Solbakken <lesters@oath.com>2022-03-10 15:03:01 +0100
commit554d15869e081e458d03f8952d6ff49da57145a3 (patch)
treed28ccd847490dc60e93b29899b8e832b11c9bec9 /config-model/src/main/java/com/yahoo
parent1648c9fbebf721fe30962c2100f4e7b2fa167f16 (diff)
Don't redirect stderr to stdout
Diffstat (limited to 'config-model/src/main/java/com/yahoo')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java b/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java
index 2ef81e3f1fa..2e2ebdeb98f 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java
@@ -48,7 +48,7 @@ public class OnnxModelProbe {
}
}
- } catch (IOException | InterruptedException e) {
+ } catch (IllegalArgumentException | IOException | InterruptedException e) {
e.printStackTrace(System.err);
}
@@ -127,7 +127,6 @@ public class OnnxModelProbe {
private static String callVespaAnalyzeOnnxModel(String jsonInput) throws IOException, InterruptedException {
ProcessBuilder processBuilder = new ProcessBuilder(binary, "--probe-types");
- processBuilder.redirectErrorStream(true);
StringBuilder output = new StringBuilder();
Process process = processBuilder.start();
@@ -136,7 +135,7 @@ public class OnnxModelProbe {
os.write(jsonInput.getBytes(StandardCharsets.UTF_8));
os.close();
- // Read output from stdout/stderr
+ // Read output from stdout
InputStream inputStream = process.getInputStream();
while (true) {
int b = inputStream.read();