perf(log): 会话消息投递成功日志降级为 debug

文本/附件投递成功的 info 日志降级为 debug,减少每条消息的运行噪音;失败路径的 warn 日志不变。
This commit is contained in:
oudecheng 2026-08-18 22:12:48 +08:00
parent 725efe3f85
commit 6037c79b9c

View File

@ -59,7 +59,7 @@ impl SessionMessageSender for BusSessionMessageSender {
match self.bus.publish_outbound(outbound).await { match self.bus.publish_outbound(outbound).await {
Ok(()) => { Ok(()) => {
published_messages += 1; published_messages += 1;
tracing::info!( tracing::debug!(
channel = %channel_name, channel = %channel_name,
chat_id = %chat_id, chat_id = %chat_id,
content_len = content_len, content_len = content_len,
@ -95,7 +95,7 @@ impl SessionMessageSender for BusSessionMessageSender {
match self.bus.publish_outbound(outbound).await { match self.bus.publish_outbound(outbound).await {
Ok(()) => { Ok(()) => {
published_messages += 1; published_messages += 1;
tracing::info!( tracing::debug!(
channel = %channel_name, channel = %channel_name,
chat_id = %chat_id, chat_id = %chat_id,
media_type = %media_type, media_type = %media_type,