remove print messages

This commit is contained in:
peterlu14
2022-04-13 15:58:27 +08:00
parent f9ab0bc59b
commit abe86238ca
-14
View File
@@ -1084,8 +1084,6 @@ class ControlServer(SocketServer, ControlServerAPI):
def _device_set_sync(self, device: CompletedDevice, sync: bool):
if sync:
# self.log_verbose('start sync', device.device_id)
client = self.data_server.client()
if client is not None:
info = self.file_manager.use(device)
@@ -1099,18 +1097,9 @@ class ControlServer(SocketServer, ControlServerAPI):
if self._device_instruction_group is None:
client.start_sync(device)
# if self._device_instruction_group is None:
# # broadcast
# self.broadcast_command(DataMessage.start(device.device_id))
else:
# self.log_verbose('stop sync', device.device_id)
if self._device_instruction_group is None:
start_sync = False
client = self.data_server.client()
if client is not None:
with client:
@@ -1124,11 +1113,8 @@ class ControlServer(SocketServer, ControlServerAPI):
# unset file info, but keep file path cache
self.file_manager.unset(device.device_id)
# broadcast
# self.broadcast_command(DataMessage.stop(device.device_id))
# server provide method implement : websocket broadcast functions
@logging_info
def broadcast_command(self, command: str, device: Optional[int] = None):
self.log_verbose(pc('broadcast_command', GREEN),