From b0d1024f669dde9fa94d1ca317890d2ac45c68d2 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Thu, 6 Mar 2025 22:45:47 -0500 Subject: [PATCH] Silence a couple of noisy logs (#26262) Closes #ISSUE Release Notes: - N/A --- crates/markdown/src/markdown.rs | 4 ++-- crates/multi_buffer/src/multi_buffer.rs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs index 5fae96b56c..54f128eca2 100644 --- a/crates/markdown/src/markdown.rs +++ b/crates/markdown/src/markdown.rs @@ -736,7 +736,7 @@ impl Element for MarkdownElement { markdown_end, ); } - _ => log::error!("unsupported markdown tag {:?}", tag), + _ => log::debug!("unsupported markdown tag {:?}", tag), } } MarkdownEvent::End(tag) => match tag { @@ -853,7 +853,7 @@ impl Element for MarkdownElement { MarkdownTagEnd::TableCell => { builder.pop_div(); } - _ => log::error!("unsupported markdown tag end: {:?}", tag), + _ => log::debug!("unsupported markdown tag end: {:?}", tag), }, MarkdownEvent::Text(parsed) => { builder.push_text(parsed, range.start); diff --git a/crates/multi_buffer/src/multi_buffer.rs b/crates/multi_buffer/src/multi_buffer.rs index 1d7183532b..c7f8c5db9b 100644 --- a/crates/multi_buffer/src/multi_buffer.rs +++ b/crates/multi_buffer/src/multi_buffer.rs @@ -3523,10 +3523,7 @@ impl MultiBufferSnapshot { ) -> impl Iterator + '_ { let query_range = range.start.to_point(self)..range.end.to_point(self); self.lift_buffer_metadata(query_range.clone(), move |buffer, buffer_range| { - let Some(diff) = self.diffs.get(&buffer.remote_id()) else { - log::debug!("no diff found for {:?}", buffer.remote_id()); - return None; - }; + let diff = self.diffs.get(&buffer.remote_id())?; let buffer_start = buffer.anchor_before(buffer_range.start); let buffer_end = buffer.anchor_after(buffer_range.end); Some(