Skip to content

[FEATURE] Allow changing uvicorn log level #1269

@Daniel-Vaz

Description

@Daniel-Vaz

📋 Prerequisites

📝 Feature Summary

Allow configuring the Uvicorn server log level via an environment variable (e.g., UVICORN_LOG_LEVEL) in agents, instead of hardcoding it to info.

❓ Problem Statement / Motivation

Currently, the Uvicorn server’s log level is hardcoded. This prevents users from adjusting the verbosity of Uvicorn logs at deployment time, leading to excessive log output (such as health checks and startup info) even when a less verbose log level is desired. This limitation makes it difficult to reduce noise in production environments or to align Uvicorn’s logging with the agent’s logging configuration.

💡 Proposed Solution

Update the agent startup code to read the Uvicorn log level from an environment variable (e.g., UVICORN_LOG_LEVEL), defaulting to info if not set.

🔄 Alternatives Considered

No response

🎯 Affected Service(s)

Not Sure

📚 Additional Context

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions