commit 589a8a904cde4e23fc8e7250f52421bd66983aed
parent 75fd22d8ed24afffeb089403445d8f17cf5899f7
Author: kernelkind <kernelkind@gmail.com>
Date: Mon, 23 Jun 2025 14:06:57 -0400
fix log messages
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/crates/notedeck_columns/src/multi_subscriber.rs b/crates/notedeck_columns/src/multi_subscriber.rs
@@ -253,8 +253,8 @@ impl ThreadSubs {
return;
};
- if cur_sub.selected_id.bytes() != id.selected_or_root() {
- tracing::error!("Somehow the current scope's root is not equal to the selected note's root");
+ if scope.root_id.bytes() != id.root_id.bytes() {
+ tracing::error!("Somehow the current scope's root is not equal to the selected note's root. scope's root: {:?}, thread's root: {:?}", scope.root_id.hex(), id.root_id.bytes());
}
if ndb_unsub(ndb, cur_sub.sub, id) {
@@ -272,11 +272,10 @@ impl ThreadSubs {
return;
};
+ if scope.root_id.bytes() != id.root_id.bytes() {
+ tracing::error!("Somehow the current scope's root is not equal to the selected note's root. scope's root: {:?}, thread's root: {:?}", scope.root_id.hex(), id.root_id.bytes());
+ }
for sub in scope.stack {
- if sub.selected_id.bytes() != id.selected_or_root() {
- tracing::error!("Somehow the current scope's root is not equal to the selected note's root");
- }
-
if ndb_unsub(ndb, sub.sub, id) {
remote.dependers = remote.dependers.saturating_sub(1);
}
diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs
@@ -227,7 +227,6 @@ fn process_nav_resp(
};
if let Some(Route::Thread(selection)) = &r {
- tracing::info!("Return type: {:?}", return_type);
app.threads
.close(ctx.ndb, ctx.pool, selection, return_type, col);
}