diff --git a/backend/api/podcast/handlers/audio.py b/backend/api/podcast/handlers/audio.py index bead13d6..7f63dc77 100644 --- a/backend/api/podcast/handlers/audio.py +++ b/backend/api/podcast/handlers/audio.py @@ -391,7 +391,10 @@ async def serve_podcast_audio( raise HTTPException(status_code=400, detail="Invalid filename") user_id = require_authenticated_user(current_user) - logger.debug(f"[Podcast] serve_podcast_audio called: user_id={user_id}, filename={filename}") + logger.info(f"[Podcast] serve_podcast_audio: filename={filename}, user_id={user_id}") + + audio_path = _resolve_podcast_media_file(filename, "audio", user_id) + logger.info(f"[Podcast] Audio resolved path: {audio_path}, exists={audio_path.exists()}") audio_path = _resolve_podcast_media_file(filename, "audio", user_id) logger.debug(f"[Podcast] Resolved audio path: {audio_path}") diff --git a/backend/api/podcast/handlers/projects.py b/backend/api/podcast/handlers/projects.py index 3c2de015..9931df3e 100644 --- a/backend/api/podcast/handlers/projects.py +++ b/backend/api/podcast/handlers/projects.py @@ -109,8 +109,11 @@ async def update_project( try: user_id = current_user.get("user_id") or current_user.get("id") if not user_id: + logger.error(f"[Podcast] update_project: No user_id found in current_user: {current_user}") raise HTTPException(status_code=401, detail="User ID not found") + logger.info(f"[Podcast] update_project: project_id={project_id}, user_id={user_id}") + service = PodcastService(db) # Convert request to dict, excluding None values