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

@@ -1,17 +1,15 @@
# TODO: Add Logging
# TODO: Add debug mode to settings?
# TODO: Add an option to append the last octet of the IP
# address to the workername when configuring
from tools.bad_board_util.miner_factory import miner_factory
from tools.bad_board_util.ui import ui
import asyncio
import sys
import logging
from logger import logger
logger.info("Initializing logger for CFG Util.")
# Fix bug with some whatsminers and asyncio because of a socket not being shut down:
if sys.version_info[0] == 3 and sys.version_info[1] >= 8 and sys.platform.startswith('win'):
@@ -19,8 +17,10 @@ if sys.version_info[0] == 3 and sys.version_info[1] >= 8 and sys.platform.starts
def main():
logging.info("Starting Board Util.")
loop = asyncio.new_event_loop()
loop.run_until_complete(ui())
logging.info("Closing Board Util.")
if __name__ == '__main__':

View File

@@ -1,5 +1,9 @@
# TODO: Add Logging
# TODO: Add an option to append the last octet of the IP
# address to the workername when configuring
import asyncio
import sys
import logging