Skip to content

Commit

Permalink
processors: fix formatting string
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Sep 23, 2024
1 parent da81df5 commit c7ff79a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pipecat/processors/frame_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ async def __internal_push_frame(self, frame: Frame, direction: FrameDirection):
logger.trace(f"Pushing {frame} from {self} to {self._next}")
await self._next.process_frame(frame, direction)
elif direction == FrameDirection.UPSTREAM and self._prev:
logger.trace(f"Pushing {frame} upstream from {
self} to {self._prev}")
logger.trace(f"Pushing {frame} upstream from {self} to {self._prev}")
await self._prev.process_frame(frame, direction)
except Exception as e:
logger.exception(f"Uncaught exception in {self}: {e}")
Expand Down
3 changes: 1 addition & 2 deletions src/pipecat/processors/metrics/frame_processor_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,5 @@ async def start_tts_usage_metrics(self, text: str):
characters = TTSUsageMetricsData(
processor=self._processor_name(), model=self._model_name(), value=len(text)
)
logger.debug(f"{self._processor_name()} usage characters: {
characters.value}")
logger.debug(f"{self._processor_name()} usage characters: {characters.value}")
return MetricsFrame(data=[characters])

0 comments on commit c7ff79a

Please sign in to comment.