generated from br3ndonland/template-python
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor start.configure_logging for module path
#3 The `start.configure_logging` method was previously configured to accept a file path to a Python logging configuration file. This works well for Docker, because the path is predictable inside the Docker image, but limits usefulness of logging_conf.py with `pip install inboard`. This commit will refactor `configure_logging` to accept a module path, in the style of `set_app_module`. References to `configure_logging`, pytest fixtures in conftest.py, and unit tests in test_start.py will be updated accordingly. The README will describe changes to `LOGGING_CONF`. This commit will also clarify some testing function argument names. - `start.set_conf_path`: `module` -> `module_stem` - `tmp_dir` -> `tmp_path` when the `tmp_path` fixture is used directly
- Loading branch information
1 parent
3dc8085
commit ff9155a
Showing
6 changed files
with
93 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.