Changed log levels
This commit is contained in:
parent
571ad2c8fb
commit
32ee4216fd
@ -141,7 +141,7 @@ class Identity:
|
|||||||
if not destination_hash in Identity.known_destinations:
|
if not destination_hash in Identity.known_destinations:
|
||||||
Identity.known_destinations[destination_hash] = storage_known_destinations[destination_hash]
|
Identity.known_destinations[destination_hash] = storage_known_destinations[destination_hash]
|
||||||
|
|
||||||
RNS.log("Saving "+str(len(Identity.known_destinations))+" known destinations to storage...", RNS.LOG_VERBOSE)
|
RNS.log("Saving "+str(len(Identity.known_destinations))+" known destinations to storage...", RNS.LOG_DEBUG)
|
||||||
file = open(RNS.Reticulum.storagepath+"/known_destinations","wb")
|
file = open(RNS.Reticulum.storagepath+"/known_destinations","wb")
|
||||||
umsgpack.dump(Identity.known_destinations, file)
|
umsgpack.dump(Identity.known_destinations, file)
|
||||||
file.close()
|
file.close()
|
||||||
@ -152,7 +152,7 @@ class Identity:
|
|||||||
else:
|
else:
|
||||||
time_str = str(round(save_time,2))+"s"
|
time_str = str(round(save_time,2))+"s"
|
||||||
|
|
||||||
RNS.log("Saved known destinations to storage in "+time_str, RNS.LOG_VERBOSE)
|
RNS.log("Saved known destinations to storage in "+time_str, RNS.LOG_DEBUG)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Error while saving known destinations to disk, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Error while saving known destinations to disk, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
@ -2083,7 +2083,7 @@ class Transport:
|
|||||||
if not RNS.Reticulum.transport_enabled():
|
if not RNS.Reticulum.transport_enabled():
|
||||||
Transport.packet_hashlist = []
|
Transport.packet_hashlist = []
|
||||||
else:
|
else:
|
||||||
RNS.log("Saving packet hashlist to storage...", RNS.LOG_VERBOSE)
|
RNS.log("Saving packet hashlist to storage...", RNS.LOG_DEBUG)
|
||||||
|
|
||||||
packet_hashlist_path = RNS.Reticulum.storagepath+"/packet_hashlist"
|
packet_hashlist_path = RNS.Reticulum.storagepath+"/packet_hashlist"
|
||||||
file = open(packet_hashlist_path, "wb")
|
file = open(packet_hashlist_path, "wb")
|
||||||
@ -2095,7 +2095,7 @@ class Transport:
|
|||||||
time_str = str(round(save_time*1000,2))+"ms"
|
time_str = str(round(save_time*1000,2))+"ms"
|
||||||
else:
|
else:
|
||||||
time_str = str(round(save_time,2))+"s"
|
time_str = str(round(save_time,2))+"s"
|
||||||
RNS.log("Saved packet hashlist in "+time_str, RNS.LOG_VERBOSE)
|
RNS.log("Saved packet hashlist in "+time_str, RNS.LOG_DEBUG)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Could not save packet hashlist to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Could not save packet hashlist to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
@ -2119,7 +2119,7 @@ class Transport:
|
|||||||
try:
|
try:
|
||||||
Transport.saving_path_table = True
|
Transport.saving_path_table = True
|
||||||
save_start = time.time()
|
save_start = time.time()
|
||||||
RNS.log("Saving path table to storage...", RNS.LOG_VERBOSE)
|
RNS.log("Saving path table to storage...", RNS.LOG_DEBUG)
|
||||||
|
|
||||||
serialised_destinations = []
|
serialised_destinations = []
|
||||||
for destination_hash in Transport.destination_table:
|
for destination_hash in Transport.destination_table:
|
||||||
@ -2165,7 +2165,7 @@ class Transport:
|
|||||||
time_str = str(round(save_time*1000,2))+"ms"
|
time_str = str(round(save_time*1000,2))+"ms"
|
||||||
else:
|
else:
|
||||||
time_str = str(round(save_time,2))+"s"
|
time_str = str(round(save_time,2))+"s"
|
||||||
RNS.log("Saved "+str(len(serialised_destinations))+" path table entries in "+time_str, RNS.LOG_VERBOSE)
|
RNS.log("Saved "+str(len(serialised_destinations))+" path table entries in "+time_str, RNS.LOG_DEBUG)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Could not save path table to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Could not save path table to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
@ -2189,7 +2189,7 @@ class Transport:
|
|||||||
try:
|
try:
|
||||||
Transport.saving_tunnel_table = True
|
Transport.saving_tunnel_table = True
|
||||||
save_start = time.time()
|
save_start = time.time()
|
||||||
RNS.log("Saving tunnel table to storage...", RNS.LOG_VERBOSE)
|
RNS.log("Saving tunnel table to storage...", RNS.LOG_DEBUG)
|
||||||
|
|
||||||
serialised_tunnels = []
|
serialised_tunnels = []
|
||||||
for tunnel_id in Transport.tunnels:
|
for tunnel_id in Transport.tunnels:
|
||||||
@ -2243,7 +2243,7 @@ class Transport:
|
|||||||
time_str = str(round(save_time*1000,2))+"ms"
|
time_str = str(round(save_time*1000,2))+"ms"
|
||||||
else:
|
else:
|
||||||
time_str = str(round(save_time,2))+"s"
|
time_str = str(round(save_time,2))+"s"
|
||||||
RNS.log("Saved "+str(len(serialised_tunnels))+" tunnel table entries in "+time_str, RNS.LOG_VERBOSE)
|
RNS.log("Saved "+str(len(serialised_tunnels))+" tunnel table entries in "+time_str, RNS.LOG_DEBUG)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Could not save tunnel table to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Could not save tunnel table to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user