tests: remove logger from tests.utils

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-06 13:18:28 -08:00
parent a6e78550d5
commit a96d9294b7
2 changed files with 3 additions and 6 deletions

View File

@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed an issue that was causing `tests.utils` import to fail because of
logging setup.
- Fixed a `SentryMetrics` issue that was preventing any metrics to be sent to - Fixed a `SentryMetrics` issue that was preventing any metrics to be sent to
Sentry and also was preventing from metrics frames to be pushed to the pipeline. Sentry and also was preventing from metrics frames to be pushed to the pipeline.

View File

@@ -5,11 +5,8 @@
# #
import asyncio import asyncio
import sys
from typing import Any, Awaitable, Callable, Dict, Sequence, Tuple from typing import Any, Awaitable, Callable, Dict, Sequence, Tuple
from loguru import logger
from pipecat.frames.frames import ( from pipecat.frames.frames import (
EndFrame, EndFrame,
Frame, Frame,
@@ -22,9 +19,6 @@ from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
logger.remove(0)
logger.add(sys.stderr, level="TRACE")
class HeartbeatsObserver(BaseObserver): class HeartbeatsObserver(BaseObserver):
def __init__( def __init__(