From 9b6fe53b3f46b5c5cf90a66241f9b636cd6dfd4a Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Apr 2018 16:38:47 +0200 Subject: [PATCH] Don't write error to log when unable to create process. The exception may be properly handled outside (e.g. when process creation failed due to required elevation -> we handle this error and show elevation dialog to user). Needed for Rider. --- .../com/intellij/execution/configurations/PtyCommandLine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/execution/configurations/PtyCommandLine.java b/platform/platform-api/src/com/intellij/execution/configurations/PtyCommandLine.java index 7f793f7ff2ee..65f2198f6246 100644 --- a/platform/platform-api/src/com/intellij/execution/configurations/PtyCommandLine.java +++ b/platform/platform-api/src/com/intellij/execution/configurations/PtyCommandLine.java @@ -70,10 +70,10 @@ public class PtyCommandLine extends GeneralCommandLine { logContent = "Unable to retrieve log: " + e.getMessage(); } - LOG.error("Couldn't run process with PTY", t, logContent); + LOG.debug("Couldn't run process with PTY", t, logContent); } else { - LOG.error("Couldn't run process with PTY", t); + LOG.debug("Couldn't run process with PTY", t); } }