reduce metrics data for 'audiopolicy'
no longer log audiopolicy records on success, only log on failure.
This drastically reduces the volume of data generated.
Bug: 78595399
Test: dumpsys media.metrics, check records
diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
index 66ac050..7337f04 100644
--- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
+++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
@@ -501,8 +501,8 @@
}
- // XXX log them all for a while, during some dogfooding.
- if (1 || status != NO_ERROR) {
+ // including successes gets very verbose
+ if (status != NO_ERROR) {
static constexpr char kAudioPolicy[] = "audiopolicy";