mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
LiteLLM's StreamHandlers output to stderr by default. In cloud environments like GCP, stderr output is treated as ERROR severity regardless of actual log level, causing INFO-level logs to be incorrectly classified as errors. This change redirects LiteLLM loggers to stdout in two places: - In `lite_llm.py`: Immediately after litellm import - In `logs.py`: When `setup_adk_logger()` is called (with guard to check if litellm is imported) Close #3824 Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 843393874