Update audio.py

This commit is contained in:
Nicolas Mowen 2023-08-03 15:53:21 -06:00 committed by GitHub
parent 98576418a8
commit 1c68f61f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,9 +306,9 @@ class AudioEventMaintainer(threading.Thread):
audio = np.frombuffer(chunk, dtype=np.int16)
self.detect_audio(audio)
except Exception:
except Exception as e:
self.logger.error(
"Error reading audio data from ffmpeg process, restarting..."
"Error reading audio data from ffmpeg process: {e}"
)
log_and_restart()