Изменена логика задания таймаутов ожидания

This commit is contained in:
2026-02-21 22:45:41 +03:00
parent 608cd42719
commit 058c19d677
10 changed files with 59 additions and 41 deletions

View File

@@ -3,6 +3,14 @@
This package was created to run my applications.
The ConfigManager class implements the entry point for the program and provides the actual application configuration. It also simplifies logging setup.
## Logging (v2)
Logging is configured from the config file only if it contains a **`log`** section in [dictConfig](https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig) format. If there is no `log` section, the manager logs a warning and the default Python level (WARNING) remains, so INFO/DEBUG messages may not appear.
**How to verify that logging config is applied:**
- Ensure your config file path is correct and the file is loaded on startup (no error in logs about reading config).
- Ensure the config has a `log` key with `version: 1`, `handlers`, and `loggers` (see `tests/config.yaml` for an example).
- After startup you should see an INFO message: `"Logging configuration applied"` (from `config_manager.v1.log_manager`). If you do not see it, either the `log` section is missing (you will see a warning) or the root/package log level is above INFO.
## Installation
``pip install git+https://git.lesha.spb.ru/alex/config_manager.git``