Skip to content

Commit

Permalink
Improved log output
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed May 17, 2022
1 parent ff74b5a commit b2d6184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RNS/Link.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def validate_proof(self, packet):
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()
Expand Down
2 changes: 1 addition & 1 deletion RNS/Reticulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __start_local_interface(self):
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)
Expand Down

0 comments on commit b2d6184

Please sign in to comment.