Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui: Add track_caller to gpui_util::log_err (#62538)

Mattia Schianofc952d52dab0
diff --git a/crates/gpui_util/src/lib.rs b/crates/gpui_util/src/lib.rs
index c4127e701f0..44637123912 100644
--- a/crates/gpui_util/src/lib.rs
+++ b/crates/gpui_util/src/lib.rs
@@ -320,6 +320,7 @@ where
);
}
+#[track_caller]
pub fn log_err<E: std::fmt::Display>(error: &E) {
log_error_with_caller(*Location::caller(), error, log::Level::Error);
}