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.

Log when events are written to Clickhouse (#9875)

Marshall Bowersb1ad60a2ef24
diff --git a/crates/collab/src/api/events.rs b/crates/collab/src/api/events.rs
index 26f811e5ff2..18825943344 100644
--- a/crates/collab/src/api/events.rs
+++ b/crates/collab/src/api/events.rs
@@ -459,6 +459,12 @@ impl ToUpload {
}
insert.end().await?;
+
+ let event_count = rows.len();
+ log::info!(
+ "wrote {event_count} {event_specifier} to '{table}'",
+ event_specifier = if event_count == 1 { "event" } else { "events" }
+ );
}
Ok(())