mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 15:15:34 -06:00
Raise level for apscheduler.scheduler logger, add TODO for easier log configuration
This commit is contained in:
@@ -9,11 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Improved documentation in `__main__.py` entrypoint file.
|
- Improved documentation in multiple areas
|
||||||
|
- `__main__.py`
|
||||||
|
- `logging.py`
|
||||||
|
|
||||||
### Fixed
|
### 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
|
- Reloader mode enabled in production
|
||||||
|
|
||||||
## [0.2.1] - 2024-11-01
|
## [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
|
### Added
|
||||||
|
|
||||||
- This `CHANGELOG.md` file.
|
- This `CHANGELOG.md` file
|
||||||
- Structured logging with `structlog`
|
- Structured logging with `structlog`
|
||||||
- Readable `ConsoleRenderer` for local development
|
- Readable `ConsoleRenderer` for local development
|
||||||
- `JSONRenderer` for production logging
|
- `JSONRenderer` for production logging
|
||||||
|
|||||||
@@ -126,7 +126,10 @@ def setup_logging(
|
|||||||
configure_logger("uvicorn", clear=True, propagate=True)
|
configure_logger("uvicorn", clear=True, propagate=True)
|
||||||
configure_logger("uvicorn.error", 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.executors.default", level="WARNING")
|
||||||
|
configure_logger("apscheduler.scheduler", level="WARNING")
|
||||||
|
|
||||||
# Since we re-create the access logs ourselves, to add all information
|
# 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
|
# in the structured log (see the `logging_middleware` in main.py), we clear
|
||||||
|
|||||||
Reference in New Issue
Block a user