From db19c4f4f8ed5c592c880ea6778842841ec2b2df Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Thu, 24 Jul 2025 10:05:48 +0200 Subject: [PATCH] Add Logs --- src/phoenix_technologies/smd/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/phoenix_technologies/smd/server.py b/src/phoenix_technologies/smd/server.py index 025a144..b42881c 100644 --- a/src/phoenix_technologies/smd/server.py +++ b/src/phoenix_technologies/smd/server.py @@ -72,6 +72,7 @@ async def smd_detail_article(article_id): summarized_content = await summarize_to_words(title=data.get("title"), text=data.get("text"), target_word_count=10000) execution_time = time.perf_counter() - start_time logger.info(f"smd_detail_article executed in {execution_time:.2f} seconds.") + logger.info(f"smd_article_summarization {summarized_content}") return { "message": summarized_content, "article_id": article_id @@ -148,6 +149,7 @@ async def smd_research(search_query: str = "Bundesrat", date_from: str = "2024-0 if article_id: tasks.append(smd_detail_article(article_id)) detailed_articles = await asyncio.gather(*tasks) + logger.info(f"detailed_articles {detailed_articles}") return { "related_persons": facets.get("persons", []), "related_organizations": facets.get("persons", []),