From 3f4eeb00be26128157f757f2bf6da9cfd56f9651 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 09:57:08 -0800 Subject: [PATCH] Python: Change DurableAIAgent log level from warning to debug when invoked without thread (#2736) * Initial plan * Change logger.warning to logger.debug for missing thread Co-authored-by: larohra <41490930+larohra@users.noreply.github.com> * Fix test to use getMessage() method for log records Co-authored-by: larohra <41490930+larohra@users.noreply.github.com> * Remove test for logging change per review feedback Co-authored-by: larohra <41490930+larohra@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: larohra <41490930+larohra@users.noreply.github.com> Co-authored-by: Laveesh Rohra --- .../agent_framework_azurefunctions/_orchestration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/azurefunctions/agent_framework_azurefunctions/_orchestration.py b/python/packages/azurefunctions/agent_framework_azurefunctions/_orchestration.py index 0f7e786778..d5adc68d74 100644 --- a/python/packages/azurefunctions/agent_framework_azurefunctions/_orchestration.py +++ b/python/packages/azurefunctions/agent_framework_azurefunctions/_orchestration.py @@ -256,7 +256,7 @@ class DurableAIAgent(AgentProtocol): # This ensures each call gets its own conversation context session_key = str(self.context.new_uuid()) session_id = AgentSessionId(name=self.agent_name, key=session_key) - logger.warning("[DurableAIAgent] No thread provided, created unique session_id: %s", session_id) + logger.debug("[DurableAIAgent] No thread provided, created unique session_id: %s", session_id) # Create entity ID from session ID entity_id = session_id.to_entity_id()