Omkar008 commited on
Commit
0648800
1 Parent(s): e8602b5

Update controllers/ws_controller.py

Browse files
Files changed (1) hide show
  1. controllers/ws_controller.py +1 -1
controllers/ws_controller.py CHANGED
@@ -166,7 +166,7 @@ async def websocket_main(code: str, websocket: WebSocket,brand_name: Optional[s
166
  async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk_size: int):
167
  message_str = json.dumps(message_json)
168
  print("Printing the message_str : ")
169
- logging.info(message_str)
170
  # await websocket.send_json({"file_len":len(file)})
171
  for i in range(0, len(message_str), chunk_size):
172
  await websocket.send_text(message_str[i:i + chunk_size])
 
166
  async def send_message_in_chunks(websocket: WebSocket, message_json: dict, chunk_size: int):
167
  message_str = json.dumps(message_json)
168
  print("Printing the message_str : ")
169
+ logging.info(message_json)
170
  # await websocket.send_json({"file_len":len(file)})
171
  for i in range(0, len(message_str), chunk_size):
172
  await websocket.send_text(message_str[i:i + chunk_size])