fix log messages

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-06-23 14:06:57 -04:00
parent 75fd22d8ed
commit 589a8a904c
2 changed files with 5 additions and 7 deletions

View File

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

View File

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