From b84c0a53905aa7b6173a7f2eb1a44cf3ffdcd532 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 16 Jan 2025 11:38:21 +0100 Subject: [PATCH] Demote panic to error log --- crates/milli/src/update/new/indexer/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/milli/src/update/new/indexer/mod.rs b/crates/milli/src/update/new/indexer/mod.rs index e68a1ad4d..cbd58c0ad 100644 --- a/crates/milli/src/update/new/indexer/mod.rs +++ b/crates/milli/src/update/new/indexer/mod.rs @@ -585,10 +585,11 @@ fn write_from_bbqueue( } (key, None) => match database.delete(wtxn, key) { Ok(false) => { - unreachable!( - "We tried to delete an unknown key from {database_name}: {:?}", - key.as_bstr() - ) + tracing::error!( + database_name, + key = %key.as_bstr(), + "Attempt to delete an unknown key" + ); } Ok(_) => (), Err(error) => {