bug: Check stderr on ssh.
This commit is contained in:
@@ -58,8 +58,12 @@ class BOSMiner(BaseMiner):
|
|||||||
try:
|
try:
|
||||||
# run the command and get the result
|
# run the command and get the result
|
||||||
result = await conn.run(cmd)
|
result = await conn.run(cmd)
|
||||||
|
stderr = result.stderr
|
||||||
result = result.stdout
|
result = result.stdout
|
||||||
|
|
||||||
|
if len(stderr) > len(result):
|
||||||
|
result = stderr
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# if the command fails, log it
|
# if the command fails, log it
|
||||||
logging.warning(f"{self} command {cmd} error: {e}")
|
logging.warning(f"{self} command {cmd} error: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user