⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Setting log_level to WARNING still shows info messages (dev UI) #4139

@jedick

Description

@jedick

Running adk web --log_level=WARNING shows a lot of info messages that clutter the logs.

INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     127.0.0.1:47366 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO:     127.0.0.1:47366 - "GET /dev-ui/ HTTP/1.1" 200 OK
INFO:     127.0.0.1:47366 - "GET /dev-ui/chunk-2WH2EVR6.js HTTP/1.1" 200 OK
INFO:     127.0.0.1:47382 - "GET /dev-ui/polyfills-B6TNHZQ6.js HTTP/1.1" 200 OK

The info messages are even more verbose in a containerized dev environment.

INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
INFO:     127.0.0.1:59732 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO:     127.0.0.1:59732 - "GET /dev-ui/ HTTP/1.1" 200 OK
INFO:     127.0.0.1:59746 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO:     127.0.0.1:59746 - "GET /dev-ui/ HTTP/1.1" 200 OK
INFO:     127.0.0.1:52314 - "GET / HTTP/1.1" 307 Temporary Redirect
INFO:     127.0.0.1:52314 - "GET /dev-ui/ HTTP/1.1" 200 OK
[Repeated every second ...]

I've locally tested a one-line change to add log_level=log_level.lower() to uvicorn.Config() (jedick@b9ac2c4).

Could this be considered for merging into the main codebase?

Metadata

Metadata

Assignees

No one assigned

    Labels

    web[Component] This issue will be transferred to adk-web

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions