Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Suppress stderr
  • Loading branch information
rozhkovdmitrii committed Feb 3, 2022
commit 96199a3b992a3293b62542e33d00abdd9c8b9e72
4 changes: 2 additions & 2 deletions proxy/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def call(self, *args):
+ (["-vvv"] if LOG_NEON_CLI_DEBUG else [])\
+ list(args)
self.debug("Calling: " + " ".join(cmd))
return subprocess.check_output(cmd, timeout=neon_cli_timeout, universal_newlines=True)
return subprocess.check_output(cmd, timeout=neon_cli_timeout, universal_newlines=True, stderr=subprocess.DEVNULL)
except subprocess.CalledProcessError as err:
self.error("ERR: neon-cli error {}".format(err))
raise
Expand All @@ -120,7 +120,7 @@ def version(self):
cmd = ["neon-cli",
"--version"]
self.debug("Calling: " + " ".join(cmd))
return subprocess.check_output(cmd, timeout=neon_cli_timeout, universal_newlines=True).split()[1]
return subprocess.check_output(cmd, timeout=neon_cli_timeout, universal_newlines=True, stderr=subprocess.DEVNULL).split()[1]
except subprocess.CalledProcessError as err:
self.error("ERR: neon-cli error {}".format(err))
raise
Expand Down