added more logging for bosminer models.
This commit is contained in:
@@ -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__':
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user