Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conda_index.index verbose DEBUG/INFO logging #5066

Merged
merged 3 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading