From 8042f5eaa156344ed74250754e43f5da6b5d0278 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 12 Jun 2022 18:55:06 +0200 Subject: [PATCH] Improved log output --- RNS/Interfaces/LocalInterface.py | 2 +- RNS/Interfaces/TCPInterface.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RNS/Interfaces/LocalInterface.py b/RNS/Interfaces/LocalInterface.py index dcb77cd..276eff0 100644 --- a/RNS/Interfaces/LocalInterface.py +++ b/RNS/Interfaces/LocalInterface.py @@ -123,7 +123,7 @@ class LocalClientInterface(Interface): RNS.log("Connection attempt for "+str(self)+" failed: "+str(e), RNS.LOG_DEBUG) if not self.never_connected: - RNS.log("Reconnected TCP socket for "+str(self)+".", RNS.LOG_INFO) + RNS.log("Reconnected socket for "+str(self)+".", RNS.LOG_INFO) self.reconnecting = False thread = threading.Thread(target=self.read_loop) diff --git a/RNS/Interfaces/TCPInterface.py b/RNS/Interfaces/TCPInterface.py index d12a706..bcf02ee 100644 --- a/RNS/Interfaces/TCPInterface.py +++ b/RNS/Interfaces/TCPInterface.py @@ -227,7 +227,7 @@ class TCPClientInterface(Interface): RNS.log("Connection attempt for "+str(self)+" failed: "+str(e), RNS.LOG_DEBUG) if not self.never_connected: - RNS.log("Reconnected TCP socket for "+str(self)+".", RNS.LOG_INFO) + RNS.log("Reconnected socket for "+str(self)+".", RNS.LOG_INFO) self.reconnecting = False thread = threading.Thread(target=self.read_loop) @@ -336,10 +336,10 @@ class TCPClientInterface(Interface): else: self.online = False if self.initiator and not self.detached: - RNS.log("TCP socket for "+str(self)+" was closed, attempting to reconnect...", RNS.LOG_WARNING) + RNS.log("The socket for "+str(self)+" was closed, attempting to reconnect...", RNS.LOG_WARNING) self.reconnect() else: - RNS.log("TCP socket for remote client "+str(self)+" was closed.", RNS.LOG_VERBOSE) + RNS.log("The socket for remote client "+str(self)+" was closed.", RNS.LOG_VERBOSE) self.teardown() break