diff options
| author | 2023-04-21 15:46:00 +0000 | |
|---|---|---|
| committer | 2023-04-21 15:46:00 +0000 | |
| commit | 04f520a7c0ef8f96493a47280769c72575522f35 (patch) | |
| tree | 05a5ae8ab55c7b04ef6c791f953ad0894d13971f | |
| parent | 46df96f6cca73441effd2fa9f5bf310106f3cbf9 (diff) | |
Log as info instead of logging with error when EPIPE
Bug: 268126973
Test: build pass
Change-Id: I4d392359d2f784ba9febb06c7d0612c5dc397677
| -rw-r--r-- | services/voiceinteraction/java/com/android/server/voiceinteraction/HotwordAudioStreamCopier.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/HotwordAudioStreamCopier.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/HotwordAudioStreamCopier.java index 2413072d036d..65c95d1261f3 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/HotwordAudioStreamCopier.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/HotwordAudioStreamCopier.java @@ -339,7 +339,11 @@ final class HotwordAudioStreamCopier { } catch (IOException e) { mAudioSource.closeWithError(e.getMessage()); mAudioSink.closeWithError(e.getMessage()); - Slog.e(TAG, mStreamTaskId + ": Failed to copy audio stream", e); + // This is expected when VIS closes the read side of the pipe on their end, + // so when the HotwordAudioStreamCopier tries to write, we will get that broken + // pipe error. HDS is also closing the write side of the pipe (the system is on the + // read end of that pipe). + Slog.i(TAG, mStreamTaskId + ": Failed to copy audio stream", e); HotwordMetricsLogger.writeAudioEgressEvent(mDetectorType, HOTWORD_AUDIO_EGRESS_EVENT_REPORTED__EVENT__CLOSE_ERROR_FROM_SYSTEM, mUid, /* streamSizeBytes= */ 0, /* bundleSizeBytes= */ 0, |