Raise level for apscheduler.scheduler logger, add TODO for easier log configuration

This commit is contained in:
2024-11-01 17:51:57 -05:00
parent b67272392a
commit 1ecab265ac
2 changed files with 9 additions and 3 deletions

View File

@@ -9,11 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Improved documentation in `__main__.py` entrypoint file.
- Improved documentation in multiple areas
- `__main__.py`
- `logging.py`
### Fixed
- IPv4 interface bind in production, preventing Railway's Private Networking from functioning.
- Raised level for `apscheduler.scheduler` logger to `WARNING` to prevent excessive logging
- IPv4 interface bind in production, preventing Railway's Private Networking from functioning
- Reloader mode enabled in production
## [0.2.1] - 2024-11-01
@@ -31,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- This `CHANGELOG.md` file.
- This `CHANGELOG.md` file
- Structured logging with `structlog`
- Readable `ConsoleRenderer` for local development
- `JSONRenderer` for production logging

View File

@@ -126,7 +126,10 @@ def setup_logging(
configure_logger("uvicorn", clear=True, propagate=True)
configure_logger("uvicorn.error", clear=True, propagate=True)
# Disable the apscheduler loggers, as they are too verbose
# TODO: This should be configurable easily from a TOML or YAML file
configure_logger("apscheduler.executors.default", level="WARNING")
configure_logger("apscheduler.scheduler", level="WARNING")
# Since we re-create the access logs ourselves, to add all information
# in the structured log (see the `logging_middleware` in main.py), we clear