From a96d9294b757d1d53abfb4ce0f22d74315f8bfc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 6 Feb 2025 13:18:28 -0800 Subject: [PATCH] tests: remove logger from tests.utils --- CHANGELOG.md | 3 +++ src/pipecat/tests/utils.py | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 052305702..214c49820 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### 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 Sentry and also was preventing from metrics frames to be pushed to the pipeline. diff --git a/src/pipecat/tests/utils.py b/src/pipecat/tests/utils.py index ccfca9304..ff92164a4 100644 --- a/src/pipecat/tests/utils.py +++ b/src/pipecat/tests/utils.py @@ -5,11 +5,8 @@ # import asyncio -import sys from typing import Any, Awaitable, Callable, Dict, Sequence, Tuple -from loguru import logger - from pipecat.frames.frames import ( EndFrame, Frame, @@ -22,9 +19,6 @@ from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.processors.frame_processor import FrameDirection, FrameProcessor -logger.remove(0) -logger.add(sys.stderr, level="TRACE") - class HeartbeatsObserver(BaseObserver): def __init__(