summaryrefslogtreecommitdiff
path: root/Biz/PodcastItLater/Worker.py
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-12 21:20:07 -0500
committerBen Sima <ben@bsima.me>2025-11-13 11:20:14 -0500
commitc018d2dd1d7e7f1cc19b25f6ec74b3dec44ae9b9 (patch)
treea8c0748068f00449bd175aa953eb1acd7027fa65 /Biz/PodcastItLater/Worker.py
parent2ad3efe73fbd5df58ae77ec411121575547f0e11 (diff)
Cleanup some logging setup code
I think the calls to Log.setup() were accidentally creating multiple loggers, hopefully this fixes the problem.
Diffstat (limited to 'Biz/PodcastItLater/Worker.py')
-rw-r--r--Biz/PodcastItLater/Worker.py4
1 files changed, 3 insertions, 1 deletions
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")