added println! for debug
This commit is contained in:
parent
a361675d73
commit
4c2cbc9c09
@ -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 {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user