From 872204b795aaf9e72ddcd1d4ca3f929884b7babc Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Fri, 2 May 2025 17:23:41 -0400 Subject: [PATCH] Only display the destination in the bot started/stopped speaking log when there is a desintation --- src/pipecat/transports/base_output.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pipecat/transports/base_output.py b/src/pipecat/transports/base_output.py index 31a86f92d..c567025e3 100644 --- a/src/pipecat/transports/base_output.py +++ b/src/pipecat/transports/base_output.py @@ -380,7 +380,9 @@ class BaseOutputTransport(FrameProcessor): async def _bot_started_speaking(self): if not self._bot_speaking: - logger.debug(f"Bot [{self._destination}] started speaking") + logger.debug( + f"Bot{f' [{self._destination}]' if self._destination else ''} started speaking" + ) downstream_frame = BotStartedSpeakingFrame() downstream_frame.transport_destination = self._destination @@ -393,7 +395,9 @@ class BaseOutputTransport(FrameProcessor): async def _bot_stopped_speaking(self): if self._bot_speaking: - logger.debug(f"Bot [{self._destination}] stopped speaking") + logger.debug( + f"Bot{f' [{self._destination}]' if self._destination else ''} stopped speaking" + ) downstream_frame = BotStoppedSpeakingFrame() downstream_frame.transport_destination = self._destination