Skip to content

Commit 08d586d

Browse files
removed the logging
1 parent abe7638 commit 08d586d

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

src/api/api/api_routes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ async def conversation(request: Request):
117117
# Get the request JSON and last RAG response from the client
118118
request_json = await request.json()
119119
conversation_id = request_json.get("conversation_id")
120-
logger.info(f"Chat request received - Conversation ID: {conversation_id}")
121-
print(f"Chat request received - Conversation ID: {conversation_id}")
122120

123121
query = request_json.get("messages")[-1].get("content")
124122
chat_service = ChatService(request=request)

src/api/plugins/chat_with_data_plugin.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,9 @@ async def get_database_metrics(
8989
# Clean up
9090
project_client.agents.threads.delete(thread_id=thread.id)
9191

92-
except Exception as e:
93-
print(f"Exception during database metrics retrieval from get_database_metrics: {e}")
92+
except Exception:
9493
answer = 'Details could not be retrieved. Please try again later.'
9594

96-
print(f"Response from Plugin: Database metrics from get_database_metrics : {answer}")
9795
return answer
9896

9997
@kernel_function(name="GetCallInsights", description="Provides summaries, explanations, and insights from customer call transcripts.")
@@ -165,10 +163,8 @@ def replace_marker(match):
165163
answer["answer"] = convert_citation_markers(answer["answer"])
166164
break
167165
project_client.agents.threads.delete(thread_id=thread.id)
168-
except Exception as e:
169-
print(f"Error in get_call_insights: {e}")
166+
except Exception:
170167
return "Details could not be retrieved. Please try again later."
171-
print(f"Response from Plugin: Call insights data from get_call_insights : {answer}")
172168
return answer
173169

174170
@kernel_function(name="GenerateChartData", description="Generates Chart.js v4.4.4 compatible JSON data for data visualization requests using current and immediate previous context.")
@@ -178,13 +174,9 @@ async def generate_chart_data(
178174
):
179175
query = input
180176
query = query.strip()
181-
print(f"Chart generation started for query: {query}")
182177

183178
try:
184-
print("Fetching chart agent from factory...")
185179
agent_info = await ChartAgentFactory.get_agent()
186-
print(f"Chart agent retrieved successfully. Agent ID: {agent_info['agent'].id if agent_info.get('agent') else 'Unknown'}")
187-
188180
agent = agent_info["agent"]
189181
project_client = agent_info["client"]
190182

@@ -202,8 +194,6 @@ async def generate_chart_data(
202194
)
203195

204196
if run.status == "failed":
205-
print(f"Chart generation run failed: {run.last_error}")
206-
print(f"Run details - ID: {run.id}, Thread ID: {thread.id}")
207197
return "Details could not be retrieved. Please try again later."
208198

209199
chartdata = ""
@@ -215,8 +205,6 @@ async def generate_chart_data(
215205
# Clean up
216206
project_client.agents.threads.delete(thread_id=thread.id)
217207

218-
except Exception as e:
219-
print(f"Exception during chart data generation from generate_chart_data: {e}")
208+
except Exception:
220209
chartdata = 'Details could not be retrieved. Please try again later.'
221-
print(f"Response from Plugin: Chart data from generate_chart_data : {chartdata}")
222210
return chartdata

src/api/services/chat_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ async def stream_chat_request(self, request_body, conversation_id, query):
140140
Handles streaming chat requests.
141141
"""
142142
history_metadata = request_body.get("history_metadata", {})
143-
logger.info(f"History Metadata: {history_metadata}")
144-
print(f"History Metadata: {history_metadata}")
145143

146144
async def generate():
147145
try:
@@ -208,8 +206,6 @@ async def complete_chat_request(self, query, last_rag_response=None):
208206
"""
209207
Completes a chat request by generating a chart from the RAG response.
210208
"""
211-
logger.info("GBC: Starting complete_chat_request in chat_Service.")
212-
print("GBC: Starting complete_chat_request in chat_Service.")
213209
if not last_rag_response:
214210
return {"error": "A previous RAG response is required to generate a chart."}
215211

0 commit comments

Comments
 (0)