Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(editor): downgrade routine renderer shutdown logs to debug

Richie McIlroyea52ea9fdf21
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 6641f1174..255451afb 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -387,7 +387,7 @@ impl RendererHandle {
.await
.is_err()
{
- tracing::warn!("Failed to send stop message to renderer");
+ tracing::debug!("Renderer stop message skipped because renderer task already stopped");
}
let _ = rx.await;
}
diff --git a/crates/editor/src/editor_instance.rs b/crates/editor/src/editor_instance.rs
index e411529f2..b15edc5c6 100644
--- a/crates/editor/src/editor_instance.rs
+++ b/crates/editor/src/editor_instance.rs
@@ -321,7 +321,11 @@ impl EditorInstance {
if let Some(task) = state.preview_task.take() {
task.abort();
if let Err(e) = task.await {
- tracing::warn!("preview task abort await failed: {e}");
+ if e.is_cancelled() {
+ tracing::debug!("preview task cancelled during editor disposal");
+ } else {
+ tracing::warn!("preview task abort await failed: {e}");
+ }
}
}