bug: Check stderr on ssh.

This commit is contained in:
UpstreamData
2023-03-23 13:24:38 -06:00
parent fd17a20a1b
commit a9e09f7b1a

View File

@@ -58,8 +58,12 @@ class BOSMiner(BaseMiner):
try:
# run the command and get the result
result = await conn.run(cmd)
stderr = result.stderr
result = result.stdout
if len(stderr) > len(result):
result = stderr
except Exception as e:
# if the command fails, log it
logging.warning(f"{self} command {cmd} error: {e}")