Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6a57cdb authored by Ray Essick's avatar Ray Essick
Browse files

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
parent a5691fa5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -501,8 +501,8 @@ status_t AudioPolicyService::startInput(audio_port_handle_t portId, bool *silenc

    }

    // 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";