tg通道优化

This commit is contained in:
xintaofei
2026-03-30 23:28:00 +08:00
parent d18cec33bf
commit 54bab306e1
2 changed files with 66 additions and 30 deletions

View File

@@ -34,7 +34,13 @@ pub fn spawn_command_dispatcher(
let send_result = manager.send_to_channel(cmd.channel_id, &response).await;
let (status, error_detail) = match &send_result {
Ok(_) => ("sent", None),
Err(e) => ("failed", Some(e.to_string())),
Err(e) => {
eprintln!(
"[ChatChannel] failed to send response for {:?} to channel {}: {e}",
text, cmd.channel_id
);
("failed", Some(e.to_string()))
}
};
let _ = chat_channel_message_log_service::create_log(