PantherHackers / PantherBot

PantherBot is a WebSocket Application that takes advantage of Slack's RTM API to interact with the channels that it is a part of.
Mozilla Public License 2.0
14 stars 14 forks source link

Logger Update and Making Dev Less Painful #79

Closed bcabio closed 7 years ago

bcabio commented 7 years ago

Logger Update

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.

bcabio commented 7 years ago

bump

bcabio commented 7 years ago

Hold on don't merge this yet. There are some unforeseen errors in the /scripts files that I have to address.