From 4c2cbc9c0980f81ed74ba3e5bf67c3195ebe19f3 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 4 May 2026 16:32:07 +0800 Subject: [PATCH] added println! for debug --- src/lib.rs | 1 + src/network/node.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ec1de87..0ca9cb1 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -82,6 +82,7 @@ pub async fn run_sdlan( Ok(tcp) => tcp, Err(e) => { if let Some(ref chan) = error_report_channel { + println!("sending report channel for exclusive tcp"); chan.send(ErrorReport { severity: ErrorSeverity::Panic, message: "bind tcp failed, is process already running?".to_string() }).await; return Err(e.into()); } else { diff --git a/src/network/node.rs b/src/network/node.rs index c3348cc..356c3b7 100755 --- a/src/network/node.rs +++ b/src/network/node.rs @@ -121,6 +121,7 @@ pub async fn init_edge( Ok(iface) => iface, Err(e) => { if let Some(ref chan) = error_report_channel { + println!("sending one panic"); chan.send(ErrorReport { severity: ErrorSeverity::Panic, message: e.to_string() }).await; return Err(e.into()); } else {