added more logging for bosminer models.

This commit is contained in:
UpstreamData
2022-03-15 09:07:07 -06:00
parent 07a8b00a93
commit 9edcd866bb
4 changed files with 51 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ class BMMiner(BaseMiner):
else:
logging.warning(f"Failed to get hostname for miner: {self}")
return "?"
except Exception:
except Exception as e:
logging.warning(f"Failed to get hostname for miner: {self}")
return "?"
@@ -85,3 +85,4 @@ class BMMiner(BaseMiner):
async def reboot(self) -> None:
logging.debug(f"{self}: Sending reboot command.")
await self.send_ssh_command("reboot")
logging.debug(f"{self}: Reboot command completed.")