Skip to content

Commit

Permalink
sshdriver: reduce loglevel when running commands
Browse files Browse the repository at this point in the history
This avoids potential SSH log messages from ending up in the command output,
especially when using stderr_merge.
  • Loading branch information
jluebbe authored and Emantor committed Jun 25, 2023
1 parent 93c5296 commit 3f63a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labgrid/driver/sshdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None):
if not self._check_keepalive():
raise ExecutionError("Keepalive no longer running")

complete_cmd = ["ssh", "-x", *self.ssh_prefix,
complete_cmd = ["ssh", "-x", "-o", "LogLevel=QUIET", *self.ssh_prefix,
"-p", str(self.networkservice.port), "-l", self.networkservice.username,
self.networkservice.address
]
Expand Down

0 comments on commit 3f63a91

Please sign in to comment.