From c018d2dd1d7e7f1cc19b25f6ec74b3dec44ae9b9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 12 Nov 2025 21:20:07 -0500 Subject: Cleanup some logging setup code I think the calls to Log.setup() were accidentally creating multiple loggers, hopefully this fixes the problem. --- Biz/PodcastItLater/Worker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Biz/PodcastItLater/Worker.py') diff --git a/Biz/PodcastItLater/Worker.py b/Biz/PodcastItLater/Worker.py index 2807e8a..202e512 100644 --- a/Biz/PodcastItLater/Worker.py +++ b/Biz/PodcastItLater/Worker.py @@ -16,6 +16,7 @@ import boto3 # type: ignore[import-untyped] import concurrent.futures import io import json +import logging import Omni.App as App import Omni.Log as Log import Omni.Test as Test @@ -40,7 +41,8 @@ from pathlib import Path from pydub import AudioSegment # type: ignore[import-untyped] from typing import Any -logger = Log.setup() +logger = logging.getLogger(__name__) +Log.setup(logger) # Configuration from environment variables OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") -- cgit v1.2.3