summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaquille Johnson <ssjohnson@google.com>2024-02-13 17:01:29 +0000
committerShaquille Johnson <ssjohnson@google.com>2024-02-13 17:01:29 +0000
commitf23fc9489bbe3f55ac032ce3d97b88c8114acd7f (patch)
treebae93032f61f15cd6fe299b6936dbb4ffe2b08e1
parent3d4f5457af9842fb2c66714a5f99743fa33479e9 (diff)
downloadsecurity-f23fc9489bbe3f55ac032ce3d97b88c8114acd7f.tar.gz
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
-rw-r--r--keystore2/src/database.rs4
1 files 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.")?;