processors: fix formatting string
This commit is contained in:
@@ -193,8 +193,7 @@ class FrameProcessor:
|
|||||||
logger.trace(f"Pushing {frame} from {self} to {self._next}")
|
logger.trace(f"Pushing {frame} from {self} to {self._next}")
|
||||||
await self._next.process_frame(frame, direction)
|
await self._next.process_frame(frame, direction)
|
||||||
elif direction == FrameDirection.UPSTREAM and self._prev:
|
elif direction == FrameDirection.UPSTREAM and self._prev:
|
||||||
logger.trace(f"Pushing {frame} upstream from {
|
logger.trace(f"Pushing {frame} upstream from {self} to {self._prev}")
|
||||||
self} to {self._prev}")
|
|
||||||
await self._prev.process_frame(frame, direction)
|
await self._prev.process_frame(frame, direction)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(f"Uncaught exception in {self}: {e}")
|
logger.exception(f"Uncaught exception in {self}: {e}")
|
||||||
|
|||||||
@@ -76,6 +76,5 @@ class FrameProcessorMetrics:
|
|||||||
characters = TTSUsageMetricsData(
|
characters = TTSUsageMetricsData(
|
||||||
processor=self._processor_name(), model=self._model_name(), value=len(text)
|
processor=self._processor_name(), model=self._model_name(), value=len(text)
|
||||||
)
|
)
|
||||||
logger.debug(f"{self._processor_name()} usage characters: {
|
logger.debug(f"{self._processor_name()} usage characters: {characters.value}")
|
||||||
characters.value}")
|
|
||||||
return MetricsFrame(data=[characters])
|
return MetricsFrame(data=[characters])
|
||||||
|
|||||||
Reference in New Issue
Block a user