From 600d59cd880905a1ec04dcebacbe55352ff869d8 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Fri, 15 Apr 2016 10:11:27 +0200 Subject: [PATCH] siri_server: less verbose --- src/siri_server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/siri_server.py b/src/siri_server.py index b17556a..3990ad5 100644 --- a/src/siri_server.py +++ b/src/siri_server.py @@ -87,15 +87,12 @@ class HandleClientConnectionThread(threading.Thread): for i in range(expected_delay_results): delay_results[self.id].append(int(split_data[7 + i])) first_data = False - if len(delay_results[self.id]) % 10 == 0: - print(self.id, ":", time_sent[self.id]) - print(self.id, ":", delay_results[self.id]) else: # Avoid further processing, wait for additional packets continue if len(buffer_data) == expected_req_size: - print(self.id, ": Received request of size", expected_req_size, "; send response of", res_size, "after", waiting_time, "s") + # print(self.id, ": Received request of size", expected_req_size, "; send response of", res_size, "after", waiting_time, "s") time.sleep(waiting_time) self.connection.sendall((str(message_id) + "&" + "0" * (res_size - len(str(message_id)) - 2) + "\n").encode(ENCODING)) first_data = True