added println! for debug

This commit is contained in:
alex 2026-05-04 16:32:07 +08:00
parent a361675d73
commit 4c2cbc9c09
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ pub async fn run_sdlan(
Ok(tcp) => tcp, Ok(tcp) => tcp,
Err(e) => { Err(e) => {
if let Some(ref chan) = error_report_channel { 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; chan.send(ErrorReport { severity: ErrorSeverity::Panic, message: "bind tcp failed, is process already running?".to_string() }).await;
return Err(e.into()); return Err(e.into());
} else { } else {

View File

@ -121,6 +121,7 @@ pub async fn init_edge(
Ok(iface) => iface, Ok(iface) => iface,
Err(e) => { Err(e) => {
if let Some(ref chan) = error_report_channel { if let Some(ref chan) = error_report_channel {
println!("sending one panic");
chan.send(ErrorReport { severity: ErrorSeverity::Panic, message: e.to_string() }).await; chan.send(ErrorReport { severity: ErrorSeverity::Panic, message: e.to_string() }).await;
return Err(e.into()); return Err(e.into());
} else { } else {