conda-build icon indicating copy to clipboard operation
conda-build copied to clipboard

Move CLI's logging initialization into a dedicated module

Open kenodegard opened this issue 10 months ago • 2 comments

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?~

kenodegard avatar Apr 09 '24 23:04 kenodegard

CodSpeed Performance Report

Merging #5275 will not alter performance

Comparing kenodegard:logging (105fcf8) with main (9c0ceec)

Summary

✅ 3 untouched benchmarks

codspeed-hq[bot] avatar Apr 09 '24 23:04 codspeed-hq[bot]

@kenodegard this sadly needs a merge :-/

jezdez avatar Apr 29 '24 20:04 jezdez