diff --git a/src/pipecat/transports/base_output.py b/src/pipecat/transports/base_output.py index b679a50c1..fa5d5e1c4 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