conda-build
conda-build copied to clipboard
Move CLI's logging initialization into a dedicated module
Description
Refactor conda_build.utils.get_logger
into conda_build.cli.logging.init_logging
and only call this initializer when the conda-build CLI entrypoints are invoked. When using conda-build as a library we do not set any logging defaults.
Resolves #5274 Xref #5415
Checklist - did you ...
- [x] Add a file to the
news
directory (using the template) for the next release's release notes? - [x] Add / update necessary tests?
- [ ] ~Add / update outdated documentation?~
CodSpeed Performance Report
Merging #5275 will not alter performance
Comparing kenodegard:logging
(105fcf8) with main
(9c0ceec)
Summary
✅ 3
untouched benchmarks
@kenodegard this sadly needs a merge :-/