diff --git a/mp0/logger.py b/mp0/logger.py index d56f8594a65dbb31b5667b19b63cad98d0b9761e..adb3011aa0c6074d9e58865fbb558cf0a7c23794 100644 --- a/mp0/logger.py +++ b/mp0/logger.py @@ -37,15 +37,13 @@ def recv_from_client(conn): if event == REQUEST_DISCONNECT_MSG: print(f"{timestamp} - {name} disconnected") - logger.info(f"{timestamp} - {name} disconnected") break if is_first_msg: print(f"{timestamp} - {name} connected") - logger.info(f"{timestamp} - {name} connected") else: print(f"{timestamp} {name} {event}") - logger.info(f"{timestamp} {str(time.time())} {name} {event} {str(initial_msg_length + msg_length)}") + logger.info(f"{timestamp} {str(time.time())} {name} {event} {str(initial_msg_length + msg_length)}") conn.close() except Exception as e: print(f"[ERROR] thread error:{e.__class__.__name__}.{e}.{traceback.format_exc()}")