Demote panic to error log

This commit is contained in:
Louis Dureuil 2025-01-16 11:38:21 +01:00
parent ce621e447e
commit b84c0a5390
No known key found for this signature in database

View File

@ -585,10 +585,11 @@ fn write_from_bbqueue(
} }
(key, None) => match database.delete(wtxn, key) { (key, None) => match database.delete(wtxn, key) {
Ok(false) => { Ok(false) => {
unreachable!( tracing::error!(
"We tried to delete an unknown key from {database_name}: {:?}", database_name,
key.as_bstr() key = %key.as_bstr(),
) "Attempt to delete an unknown key"
);
} }
Ok(_) => (), Ok(_) => (),
Err(error) => { Err(error) => {