From 936997874b787c0fcfd530b6bc5d6b2ab224fa70 Mon Sep 17 00:00:00 2001 From: Dominik Werder Date: Wed, 14 May 2025 16:36:02 +0200 Subject: [PATCH] Create better message --- netfetch/src/ca/conn.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/netfetch/src/ca/conn.rs b/netfetch/src/ca/conn.rs index f2cd196..ff754ce 100644 --- a/netfetch/src/ca/conn.rs +++ b/netfetch/src/ca/conn.rs @@ -2850,14 +2850,24 @@ impl CaConn { if series::dbg::dbg_chn(&name) { info!("queue event to notice channel create fail {name}"); } + let failinfo = format!("name {} cid {}", name, cid); let item = CaConnEvent { ts: tsnow, - value: CaConnEventValue::ChannelCreateFail(name.into()), + value: CaConnEventValue::ChannelCreateFail(failinfo), }; self.ca_conn_event_out_queue.push_back(item); + warn!("CreateChanFail {} msg {:?}", name, msg); + self.channel_remove_by_cid(cid); + } else { + let failinfo = format!("unexpected cid {}", cid); + let item = CaConnEvent { + ts: tsnow, + value: CaConnEventValue::ChannelCreateFail(failinfo), + }; + self.ca_conn_event_out_queue.push_back(item); + warn!("CreateChanFail cid not known msg {:?}", msg); + self.channel_remove_by_cid(cid); } - self.channel_remove_by_cid(cid); - warn!("CaConn sees: {msg:?}"); } CaMsgTy::Error(msg) => { warn!("CaConn sees: {msg:?}");