mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-01-18 16:30:33 +00:00
Improved logging
This commit is contained in:
parent
ad1e6a41ee
commit
67195c0b14
@ -2679,6 +2679,7 @@ class Transport:
|
|||||||
shared_instance_master = None
|
shared_instance_master = None
|
||||||
local_interfaces = []
|
local_interfaces = []
|
||||||
detach_threads = []
|
detach_threads = []
|
||||||
|
RNS.log("Detaching interfaces", RNS.LOG_DEBUG)
|
||||||
for interface in detachable_interfaces:
|
for interface in detachable_interfaces:
|
||||||
try:
|
try:
|
||||||
if type(interface) == RNS.Interfaces.LocalInterface.LocalServerInterface:
|
if type(interface) == RNS.Interfaces.LocalInterface.LocalServerInterface:
|
||||||
@ -2687,7 +2688,7 @@ class Transport:
|
|||||||
local_interfaces.append(interface)
|
local_interfaces.append(interface)
|
||||||
else:
|
else:
|
||||||
def detach_job():
|
def detach_job():
|
||||||
RNS.log(f"Detaching {interface}", RNS.LOG_DEBUG)
|
RNS.log(f"Detaching {interface}", RNS.LOG_EXTREME)
|
||||||
interface.detach()
|
interface.detach()
|
||||||
dt = threading.Thread(target=detach_job, daemon=True)
|
dt = threading.Thread(target=detach_job, daemon=True)
|
||||||
dt.start()
|
dt.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user