Reduce over-severe logging
Reduce the number of error logs that are emitted by Keystore on a normal
start-up:
- StrongBox is optional, so if its hardware type is unavailable, don't
treat that as an error.
- Helper text for `deleteAllKeys`.
- Swap "unexpected" for domain info.
- Also remove unnecessary `pub` instances.
Test: boot Cuttlefish, watch logcat
Change-Id: I7c2a7a3ad05a5afedf2b3f3cdba1136a38183183
diff --git a/keystore2/src/audit_log.rs b/keystore2/src/audit_log.rs
index 8d9735e..4952b3b 100644
--- a/keystore2/src/audit_log.rs
+++ b/keystore2/src/audit_log.rs
@@ -34,8 +34,8 @@
match domain {
Domain::APP => uid,
Domain::SELINUX => (nspace | FLAG_NAMESPACE) as i32,
- _ => {
- log::info!("Not logging audit event for key with unexpected domain");
+ d => {
+ log::info!("Not logging audit event for key with domain {d:?}");
0
}
}