diff --git a/app/classes/web/websocket_helper.py b/app/classes/web/websocket_helper.py index 8c9d67be..e9c1861d 100644 --- a/app/classes/web/websocket_helper.py +++ b/app/classes/web/websocket_helper.py @@ -77,8 +77,10 @@ class WebSocketHelper: def broadcast_with_fn(self, filter_fn, event_type: str, data): clients = list(filter(filter_fn, self.clients)) - - logger.debug(f"Sending to {len(clients)} out of {len(self.clients)} clients: {json.dumps({'event': event_type, 'data': data})}") + try: + logger.debug(f"Sending to {len(clients)} out of {len(self.clients)} clients: {json.dumps({'event': event_type, 'data': data})}") + except: + logger.debug("Our logging statement actually just farted line 83 websocket helper.") for client in clients: try: diff --git a/main.py b/main.py index 8252bc9b..e86c5153 100644 --- a/main.py +++ b/main.py @@ -84,6 +84,8 @@ if __name__ == '__main__': args = parser.parse_args() + helper.ensure_logging_setup() + setup_logging(debug=args.verbose) # setting up the logger object