Skip to content

Commit

Permalink
Fix conda_index.index verbose DEBUG/INFO logging (#5066)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
  • Loading branch information
mbargull and kenodegard authored Nov 17, 2023
1 parent 05cc56a commit eb5ecc0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
28 changes: 15 additions & 13 deletions conda_build/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,19 +312,21 @@ def _delegated_update_index(
dir_path = parent_path
subdirs = [dirname]

return _update_index(
dir_path,
check_md5=check_md5,
channel_name=channel_name,
patch_generator=patch_generator,
threads=threads,
verbose=verbose,
progress=progress,
subdirs=subdirs,
warn=warn,
current_index_versions=current_index_versions,
debug=debug,
)
log_level = logging.DEBUG if debug else logging.INFO if verbose else logging.WARNING
with utils.LoggingContext(log_level):
return _update_index(
dir_path,
check_md5=check_md5,
channel_name=channel_name,
patch_generator=patch_generator,
threads=threads,
verbose=verbose,
progress=progress,
subdirs=subdirs,
warn=warn,
current_index_versions=current_index_versions,
debug=debug,
)


# Everything below is deprecated to maintain API/feature compatibility.
Expand Down
19 changes: 19 additions & 0 deletions news/5066-fix-conda_index-log-spam
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Fix conda_index.index verbose DEBUG/INFO message logging. (#5066)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit eb5ecc0

Please sign in to comment.