Skip to content

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 11, 2024
1 parent e4dbc86 commit a9e5614
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/viewer/re_viewer_context/src/store_hub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions crates/viewer/re_viewer_context/src/undo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl BlueprintUndoState {
self.current_time = Some(previous);
} else {
// nothing to undo to
re_log::debug!("Nothing to undo");
}
}

Expand All @@ -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");
}
}

Expand Down

0 comments on commit a9e5614

Please sign in to comment.