From 540044c259d02792d3c3c2185a50eea58e57cf0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 26 Apr 2021 20:37:32 +0200 Subject: [PATCH] some printing, should replace with logger --- server/netwrapper.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/netwrapper.py b/server/netwrapper.py index 4f7f514..8a2f1bb 100644 --- a/server/netwrapper.py +++ b/server/netwrapper.py @@ -136,21 +136,22 @@ class NetWrapper: return False def initClientConnection(self, msg: bytes) -> bytes: - print('3') + print('A client is trying to connect') try: - print('4') + print('Server and Client identity verification started') self.serverIdentify(msg) - print('5') + print('Key exchange started') self.keyExchange() - print('6') + print('Authorization started') success = self.login() - print('7') + print(f'Authorization completed, success: {success}') if success: return "LINOK".encode('UTF-8') else: self.logout() return "LINERROR".encode('UTF-8') except Exception: + print("Error ecountered, resetting") self.logout() return "LINERROR".encode('UTF-8')