From b2d61843d0e53a7edabd18b4bebfb387257c1f34 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 17 May 2022 13:25:42 +0200 Subject: [PATCH] Improved log output --- RNS/Link.py | 2 +- RNS/Reticulum.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RNS/Link.py b/RNS/Link.py index 2a3ee8b..6b7eede 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -267,7 +267,7 @@ class Link: self.attached_interface = packet.receiving_interface self.__remote_identity = self.destination.identity RNS.Transport.activate_link(self) - RNS.log("Link "+str(self)+" established with "+str(self.destination)+", RTT is "+str(self.rtt), RNS.LOG_VERBOSE) + RNS.log("Link "+str(self)+" established with "+str(self.destination)+", RTT is "+str(round(self.rtt, 3))+"s", RNS.LOG_VERBOSE) rtt_data = umsgpack.packb(self.rtt) rtt_packet = RNS.Packet(self, rtt_data, context=RNS.Packet.LRRTT) rtt_packet.send() diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 47054b0..8ba8f34 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -275,7 +275,7 @@ class Reticulum: self.is_standalone_instance = False self.is_connected_to_shared_instance = True Reticulum.__transport_enabled = False - RNS.log("Connected to local shared instance via: "+str(interface), RNS.LOG_DEBUG) + RNS.log("Connected to locally available Reticulum instance via: "+str(interface), RNS.LOG_DEBUG) except Exception as e: RNS.log("Local shared instance appears to be running, but it could not be connected", RNS.LOG_ERROR) RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)