Logger update implements a new module log_handler.py that has a new class PBLogHandler which extends the logging.StreamHandler class. This allows for a resuable log handler. With this new log handler, rather than having print statements in production, we'll have logger statements instead which can later be implemented to keep records i.e. logging to a file.
Making Dev Less Painful
Implemented a way to KeyboardInterrupt the websocket. Before, it was not possible and you'd have to close the terminal in order to get another instance running.
Logger Update
Logger update implements a new module
log_handler.py
that has a new classPBLogHandler
which extends thelogging.StreamHandler
class. This allows for a resuable log handler. With this new log handler, rather than having print statements in production, we'll have logger statements instead which can later be implemented to keep records i.e. logging to a file.Making Dev Less Painful
Implemented a way to KeyboardInterrupt the websocket. Before, it was not possible and you'd have to close the terminal in order to get another instance running.