From f23fc9489bbe3f55ac032ce3d97b88c8114acd7f Mon Sep 17 00:00:00 2001 From: Shaquille Johnson Date: Tue, 13 Feb 2024 17:01:29 +0000 Subject: Update typo and add blob id to log The logs were missing a word and also this will add the blob id into the logs when a query fails to delete the blob. Test: atest keystore2_test Change-Id: Ieff6e9266837744d16633c93df0b6da27871eca7 --- keystore2/src/database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keystore2/src/database.rs b/keystore2/src/database.rs index d320e20a..b526daac 100644 --- a/keystore2/src/database.rs +++ b/keystore2/src/database.rs @@ -1167,9 +1167,9 @@ impl KeystoreDB { "DELETE FROM persistent.blobmetadata WHERE blobentryid = ?;", params![blob_id], ) - .context("Trying to delete blob metadata.")?; + .context(ks_err!("Trying to delete blob metadata: {:?}", blob_id))?; tx.execute("DELETE FROM persistent.blobentry WHERE id = ?;", params![blob_id]) - .context("Trying to blob.")?; + .context(ks_err!("Trying to delete blob: {:?}", blob_id))?; } Self::cleanup_unreferenced(tx).context("Trying to cleanup unreferenced.")?; -- cgit v1.2.3