From 32ee4216fdc82b01bcad32e0b0202b85048418ff Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 24 Sep 2022 12:23:59 +0200 Subject: [PATCH] Changed log levels --- RNS/Identity.py | 4 ++-- RNS/Transport.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/RNS/Identity.py b/RNS/Identity.py index 390ddba..3d2ecd8 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -141,7 +141,7 @@ class Identity: if not destination_hash in Identity.known_destinations: 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") umsgpack.dump(Identity.known_destinations, file) file.close() @@ -152,7 +152,7 @@ class Identity: else: 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: RNS.log("Error while saving known destinations to disk, the contained exception was: "+str(e), RNS.LOG_ERROR) diff --git a/RNS/Transport.py b/RNS/Transport.py index e6b5acc..5c84e32 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -2083,7 +2083,7 @@ class Transport: if not RNS.Reticulum.transport_enabled(): Transport.packet_hashlist = [] 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" file = open(packet_hashlist_path, "wb") @@ -2095,7 +2095,7 @@ class Transport: time_str = str(round(save_time*1000,2))+"ms" else: 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: 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: Transport.saving_path_table = True 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 = [] for destination_hash in Transport.destination_table: @@ -2165,7 +2165,7 @@ class Transport: time_str = str(round(save_time*1000,2))+"ms" else: 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: 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: Transport.saving_tunnel_table = True 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 = [] for tunnel_id in Transport.tunnels: @@ -2243,7 +2243,7 @@ class Transport: time_str = str(round(save_time*1000,2))+"ms" else: 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: RNS.log("Could not save tunnel table to storage, the contained exception was: "+str(e), RNS.LOG_ERROR)