Skip to content

Commit

Permalink
Also set logging level for uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
dekkers committed Oct 29, 2024
1 parent ba4386d commit 8e1881f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mula/scheduler/context/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def __init__(self) -> None:
root_logger = logging.getLogger()
root_logger.setLevel(level)
root_logger.handlers[0].setLevel(level)
logging.getLogger("uvicorn.access").setLevel(level)
logging.getLogger("uvicorn.error").setLevel(level)

# Check if we enabled structured logging in the configuration
if self.config.logging_format == "json":
Expand Down

0 comments on commit 8e1881f

Please sign in to comment.