mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Add try catch around troublesome logging statement
This commit is contained in:
parent
eeaceb61fc
commit
9b03163c6b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user