From a9e561453259ed9a300024f5dd9ff722878adb73 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 11 Nov 2024 09:16:29 +0100 Subject: [PATCH] Better logging --- crates/viewer/re_viewer_context/src/store_hub.rs | 7 +++++-- crates/viewer/re_viewer_context/src/undo.rs | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/viewer/re_viewer_context/src/store_hub.rs b/crates/viewer/re_viewer_context/src/store_hub.rs index e7440e3d80bc..6adf3958acc0 100644 --- a/crates/viewer/re_viewer_context/src/store_hub.rs +++ b/crates/viewer/re_viewer_context/src/store_hub.rs @@ -716,8 +716,11 @@ impl StoreHub { time_budget: re_entity_db::DEFAULT_GC_TIME_BUDGET, protected_time_ranges, }); - if let Some(caches) = self.caches_per_recording.get_mut(blueprint_id) { - caches.on_store_events(&store_events); + if !store_events.is_empty() { + re_log::debug!("Garbage-collected blueprint store"); + if let Some(caches) = self.caches_per_recording.get_mut(blueprint_id) { + caches.on_store_events(&store_events); + } } self.blueprint_last_gc diff --git a/crates/viewer/re_viewer_context/src/undo.rs b/crates/viewer/re_viewer_context/src/undo.rs index 836e52976725..bac88665bb5f 100644 --- a/crates/viewer/re_viewer_context/src/undo.rs +++ b/crates/viewer/re_viewer_context/src/undo.rs @@ -65,6 +65,7 @@ impl BlueprintUndoState { self.current_time = Some(previous); } else { // nothing to undo to + re_log::debug!("Nothing to undo"); } } @@ -73,6 +74,7 @@ impl BlueprintUndoState { self.current_time = self.inflection_points.range(time.inc()..).next().copied(); } else { // If we have no time, we're at latest, and have nothing to redo + re_log::debug!("Nothing to redo"); } }