add missing super().process_frame() calls
This commit is contained in:
@@ -38,6 +38,8 @@ logger.add(sys.stderr, level="DEBUG")
|
|||||||
|
|
||||||
class MetricsLogger(FrameProcessor):
|
class MetricsLogger(FrameProcessor):
|
||||||
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
||||||
|
await super().process_frame(frame, direction)
|
||||||
|
|
||||||
if isinstance(frame, MetricsFrame):
|
if isinstance(frame, MetricsFrame):
|
||||||
for d in frame.data:
|
for d in frame.data:
|
||||||
if isinstance(d, TTFBMetricsData):
|
if isinstance(d, TTFBMetricsData):
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ class STTMuteFilter(FrameProcessor):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
||||||
|
await super().process_frame(frame, direction)
|
||||||
|
|
||||||
"""Processes incoming frames and manages muting state."""
|
"""Processes incoming frames and manages muting state."""
|
||||||
# Handle function call state changes
|
# Handle function call state changes
|
||||||
if isinstance(frame, FunctionCallInProgressFrame):
|
if isinstance(frame, FunctionCallInProgressFrame):
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ class FrameLogger(FrameProcessor):
|
|||||||
self._ignored_frame_types = tuple(ignored_frame_types) if ignored_frame_types else None
|
self._ignored_frame_types = tuple(ignored_frame_types) if ignored_frame_types else None
|
||||||
|
|
||||||
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
async def process_frame(self, frame: Frame, direction: FrameDirection):
|
||||||
|
await super().process_frame(frame, direction)
|
||||||
|
|
||||||
if self._ignored_frame_types and not isinstance(frame, self._ignored_frame_types):
|
if self._ignored_frame_types and not isinstance(frame, self._ignored_frame_types):
|
||||||
dir = "<" if direction is FrameDirection.UPSTREAM else ">"
|
dir = "<" if direction is FrameDirection.UPSTREAM else ">"
|
||||||
msg = f"{dir} {self._prefix}: {frame}"
|
msg = f"{dir} {self._prefix}: {frame}"
|
||||||
|
|||||||
Reference in New Issue
Block a user