From c565473bf822210a0b78945e0ac87fc03d895546 Mon Sep 17 00:00:00 2001 From: Pratik Mahajan Date: Tue, 6 May 2025 22:57:31 -0700 Subject: [PATCH] Copybara import of the project: -- 09b10cd96fc095061c6891a0d3cc3cc83948a126 by pratikmahajan : fix: change litellm request log level to debug Litellm was previously logging every request at the info level, which could clutter the logs with unnecessary detail in production environments. This commit changes the log statement to use the debug level instead, ensuring that request details are only logged when debug mode is active. This helps keep the standard logs focused on more critical information. Co-authored-by: pratikmahajan COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/583 from PratikMahajan:litellm-log-levels 04fcd7247693e0c733318789f1ea47ecec81add4 PiperOrigin-RevId: 755691209 --- src/google/adk/models/lite_llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/adk/models/lite_llm.py b/src/google/adk/models/lite_llm.py index 70e22a9..63abd78 100644 --- a/src/google/adk/models/lite_llm.py +++ b/src/google/adk/models/lite_llm.py @@ -611,7 +611,7 @@ class LiteLlm(BaseLlm): """ self._maybe_append_user_content(llm_request) - logger.info(_build_request_log(llm_request)) + logger.debug(_build_request_log(llm_request)) messages, tools = _get_completion_inputs(llm_request)