-
- Downloads
Reload the pyo3-log config when the Python logging config changes. (#14976)
Since pyo3-log is initialized very early in the Python start-up it caches the state of the loggers before they're fully initialized (and thus are essentially disabled). Whenever we reload the logging configuration we now also tell pyo3-log to discard any cached logging configuration it has; it will refetch the current logging configuration from Python at the next point it logs. This fixes Rust log lines not appearing in the homeserver logs.
Showing
- changelog.d/14976.bugfix 1 addition, 0 deletionschangelog.d/14976.bugfix
- rust/src/lib.rs 15 additions, 2 deletionsrust/src/lib.rs
- stubs/synapse/synapse_rust/__init__.pyi 1 addition, 0 deletionsstubs/synapse/synapse_rust/__init__.pyi
- synapse/config/logger.py 24 additions, 18 deletionssynapse/config/logger.py
- tests/test_utils/logging_setup.py 3 additions, 0 deletionstests/test_utils/logging_setup.py
Loading
Please register or sign in to comment